posted 23 years ago
3.public interface Colorable{ }
public class Shape implements Colorable{ }
4.public class Species{ }
public class Animal{private Species species;}
5.interface Component{ }
class Container implements Component{
private Component[] children;
}
Hi Vijay,
In 3 there's "is a" relationship : Shape is a Colorable.
In 4 there's "has a" relationship : Animal has a Speices, although meaning-less.
Hope this helps,
------------------
Regards
---------
vadiraj
*****************
There's a lot of I in J.
*****************
Regards<BR>---------<BR>vadiraj<P><BR>*****************<BR>There's a lot of I in J.<BR>*****************