Re: What is a COMPOUND CLASS ?

From: Sonia (smach02_at_hotmail.com)
Date: 04/20/04


Date: Tue, 20 Apr 2004 12:39:55 -0400


"Adam" <NOTFORSPAM.a_szczeblewski@poczta.onet.pl> wrote in message
news:c63c4b$t6$1@news.onet.pl...
> > > > Sonia wrote:
> > > > > I have been looking for a definition of a compound class but
> cannot
> > find
> > > it
> > > > > anywhere ?
> > > > > What exactly is a compound class ?
> [cut]
> > >
> > I have found this
> > compound classes (classes formed by inheritance and aggregation
> > relationships).
>
> I would say compound != simple.
>
> class SimpleClass
> {
> int simpleField;
> int simpleMethod(double param){}
> }
>
> class CompoundClass extends OtherClass implements InterfaceOne,
> InterfaceTwo
> {
> AnotherClass field1;
> YetAnotherClass field2;
> //etc.
> }
>
> So just like you said - a compound class has many relationships (of
> inheritance and aggregation).
> Still, I can't really get what would
> "Develop a comprehensive class scope test suite for compound classes."
> mean...
> Maybe using reflection to find out with what classes the tested one
> has relationships.
> I would need to know more about the nature of desired tests.
>
> Adam
>
>

Adam, Thanks, yes and They are not simple.
As far as tests go, there are certain test aimed specifically at the compund
classes. I will post as soon as I fnd out myself. I am reading up on it
right now.
Sonia