Showing posts with label is-a. Show all posts
Showing posts with label is-a. Show all posts

Tuesday, March 27, 2012

Inheritence

When once class is derived / extended / inherited from another class, this relationship is said to be 'Inheritance'.

In Java, the extends keyword is used in the class declaration to implement inheritance.



"Inheritance (The Java™ Tutorials > Learning the Java Language > Interfaces and Inheritance)" ( http://bit.ly/OgTDmk )

"Is-a - Wikipedia, the free encyclopedia" ( http://bit.ly/JWeeX1 )

An example class diagram.