File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes relationship Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "relationship " Watch "relationship " New topic


mohanasundaram muthukannan
Ranch Hand

Joined: May 29, 2008
Posts: 35

difference between the "is-a" and the "has-a" relationship ?

Thanks in advance
Jesus Angeles
Ranch Hand

Joined: Feb 26, 2005
Posts: 2068
Non-computer-related language:

John has a cat.

Garfield is a cat.


class John {
Cat pet;

class Garfield extends Cat{
jQuery in Action, 3rd edition
subject: relationship
It's not a secret anymore!