Originally posted by Parameswaran Thangavel:
hi
i doubt how this statisfies the IS-A relation
public class Species { }
public class Animal {private Species species;}
the class Animal has a reference to the class species....
literally is-a means extends....
can any one clear me?
Thanks in advance.
whenever you are extending any class then it is always a is-a relationship and whenever you were actually using a particular class in other class or you has the class(Species) in the class(Animal) the you are in has a relationship.