John Eric

Greenhorn
+ Follow
since Nov 16, 2010
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by John Eric

consider this example:-

class A{
...
}

class B extends A{

....
}
the above code shows IS A relationship, this can be implemented as Inheritance.

Class Library{
Book b=new Book();
CD cc=new CD();
}

this shows HAS A relationship.
HAS A also know as composition.



13 years ago