Tuesday 17 March 2015

Q 01) What is OOP What Are The Concepts In It ?




Object Oriented Programming :

      It is a programming paradigm used to combine data and procedures in a package called “OBJECTS”.
     The object oriented programming language directly represents the real life objects like a car, jeep, customer, account, etc..

There are 3 main concepts of OOPS they are:
  1. Encapsulation
  2. Inheritance
  3. Polymorphism

These features of Object Oriented programming languages

( ie, PIE ) which make Java Powerful .And they are the Pillars of OOPL.

PIE : Short form to remember 3 concepts of OOPL.
Where P -  Polymorphism.
            I -   Inheritance.
            E -  Encapsulation.

No comments:

Post a Comment