Saturday, December 24, 2011

What are the four corner stones of OOP ?

1.Abstraction : Hiding Unnecessary part of data in the program is called abstraction.

2.Inheritance: It is the process of deriving a new class from old one. The old class is known as super class and the new one is sub class

3.Polymorphism: Ability to take more than one form is called polymorphism. Method overloading and overriding are the examples of polymorphism.

4.Encapsulation: Wrapping up of methods and variables into a single unit is called encapsulation.