What are the four basics of object-oriented programming

This post answers the question “What are the 4 basics of OOP?”. As it clear from the name of the post, object-oriented programming is based on objects and data. It works with classes and objects and based on the for main principles – abstraction, inheritance, polymorphism and  encapsulation.

Abstraction is the principle that allows to express only main features, hiding the details.

Inheritance shows the hierarchical relationship between classes and objects.

Polymorphism is the principle showing that certain object can be expressed in variety of different ways.

Encapsulation is the principle that allows to hide unnecessary details making a program code easier.

 

 

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Previous Post

Solutions for hot shortness

Next Post

Five steps to achieving value from IoT