OOPS Components

  1. Inheritance
  2. Encapsulation
  3. Abstraction
  4. Polymorphism


→ Inheritance is the idea of accessing the data and the methods of its parent class.

  • Multi-level Inheritance
  • Hierarchical Inheritance
  • Multiple Inheritance (Not Support by JAVA, this is because if we consider 2 class B and C are extended (inherited) by A, both B and A has method display now when display method is invoked JVM gets confused, so to overcome this we can inherit 2 interfaces )


→ Its Mechanism is to bind data(variables) and methods into a single unit, the main advantage of encapsulation is DATA HIDING.

3.Abstraction :

→ This concept is used to show needed required information to the user and the rest is hidden.


→ by the word, Polymorphism means many-forms or behavior.