Object Oriented Programming

Object Oriented Programming is an approach which acts as a bridge between the life and coding.

What is Object Oriented Programming?

The programming paradigm which recognizes life as we know it as a collection of onjects, which work in parallel to each other tp solve a particular problem.

Key Features

  • Data Encapsulation: It is defined as wrapping up of data and information together unser a single entity/unit. Also to protect your data from any foreign entity. The data under a class using some correct access specifiers acts as checkpoint for who to allow and who to not.
  • Data Abstraction: Data abstraction is one of the most essential and important features of object oriented programming in C++. It means displaying only the required information and hinding the details about how it works etc. Encapsulation and Abstraction go hand in hand.
  • Inheritance: The capability of a class to derive properties and characteristics from another class is called inheritance. Inheritance is one of the most important features of Object Oriented Programming.
  • Modularity: It is like dividing the program into small small groups which have unique tasks but are grouped together to conclude a large task first.
  • Polymorphism: 'Poly' means many and 'Morphism' means form. The function/module/entity in a program which can have multiple forms.

Advantages of object oriented programming

  • OOP offers ease of management due to modularity.
  • OOP mimics real world, making it easier to understand.
  • Objects are reusable in other programs.

Disadvantages of object oriented programming

  • It tends to be slower and uses a high amount of memory
  • Over generalization
  • Programs built using this paradigm may take longer to be created..