IS-A refers to inheritance or implementation. : Composition « Object Oriented « SCJP

Home
SCJP
1.Java Source And Data Type
2.Operators
3.Modifiers
4.Type Casting
5.Statements
6.Object Oriented
7.Thread
8.Utility Classes
9.File
SCJP » Object Oriented » Composition 
6.2.1.IS-A refers to inheritance or implementation.
IS-A is expressed with the keyword extends.

HAS-A means an instance of one class "has a" reference to another class.

All classes (except class Object), are subclasses of type Object, and therefore they inherit Object's methods.

Polymorphism means "many forms."

IS-A is based on class inheritance or interface implementation. 

HAS-A relationships are based on usage, rather than inheritance.
6.2.Composition
6.2.1.IS-A refers to inheritance or implementation.
6.2.2.Using composition (the "has a" relation)
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.