Object-Oriented Programming Principle
A program developed in an object-oriented approach is based on the three basicconcepts, which are encapsulation, inheritance, and polymorphism.
is a mechanism that binds together attributes and methods into a singleobject, and keeps both safe from interference or misuse, that is, the details of theobject are encapsulated or hidden, from the user. The user knows that the methodcan be requested but does now know how the specifics of how the method isperformed. This can be called information hiding.
An object maybe part of a large category of objects called a class. Everyobject in a class shares similar methods and attributes as the original objects. Thehigher-level class is called “superclass” the lower level class is called “subclass”.This concept of low levels inheriting attributes and methods of a superclass iscalled inheritance.