1.

What are the 4 pillars of Object-oriented programming system (OOPs)?

Answer»

The 4 pillars of Object-oriented programming SYSTEMS (OOPs) are as follows:

  • Inheritance: Using this property, one object can acquire some/all properties of ANOTHER object.
  • Abstraction: Abstraction is the process of selecting data from a larger pool to only show the relevant DETAILS to the object.
  • Encapsulation:  Encapsulation is accomplished when each object inside a class maintains a private state.
  • Polymorphism:   Polymorphism provides a way to use a class exactly LIKE its parent so there is no confusion with MIXING types.


Discussion

No Comment Found