Pages

Showing posts with label diamond problem. Show all posts
Showing posts with label diamond problem. Show all posts

Saturday, 23 February 2013

INHERITANCE IN JAVA

INHERITANCE IN JAVA

Inheritance  can be defined as a process where an object acquires a property of  another .Different objects often have   a certain amount in common with each other . for example mountain bike , road bike and motor-bike all share the common characteristics of a bicycle ( current speed,current pedal  cadence,current gear) , yet each one of them have some of there own additional features which makes them different . Thus inheritance in Java is an object oriented or OOPS concept which helps us to mimic the real world inheritance behavior  .