IS-A means two classes are part of same inheritance hierarchy, while HAS-A means two classes are not part of same inheritance hierarchy but class A is composed using class B and uses it to provide certain functionality.
Learn Java and Programming through articles, code examples, and tutorials for developers of all levels.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment
Feel free to comment, ask questions if you have any doubt.