Pages

Showing posts with label java tutorials. Show all posts
Showing posts with label java tutorials. Show all posts

Monday, 1 April 2013

POLYMORPHISM IN JAVA

Polymorphism  is an important feature of object oriented programming. Polymorphism refers to the principle in which an object can exhibit different behaviors. Polymorphism provide improved code organization and readability as well as the creation of extensible programs. A subclass can show its own unique behavior and yet exhibit some of the functionality from its parent class.

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  .