There are four basic pillars on which OOPS (Object Oriented Programming) is based. These are:

  • Abstraction: Abstraction is the process of hiding the details which are not important such as the implementation details and shows only those which are useful. The user can only see the functionality and not the inside working of the system.
  • Inheritance: Inheritance is the property of the object-oriented paradigm in which one or more derived class inherits some of the properties of the base class.
  • Encapsulation: Encapsulation is the process of wrapping up data in a single unit.
  • Polymorphism: It is a property in which a single action can be performed in different ways.
BY Best Interview Question ON 22 Oct 2019