posted 21 years ago
The relationship between Animal and Species is a "has-a" relationship because Animal "has-a" Species.
The relationship between Container and Component is an "is-a" relationship because Container implements Component. A "has-a" relationship also exists because Container has a field that is an array of Container.
Dan Chisholm<br />SCJP 1.4<br /> <br /><a href="http://www.danchisholm.net/" target="_blank" rel="nofollow">Try my mock exam.</a>