OOP approach was invented to make up for the flaws encountered in the procedural approach and was the motivating factor in its invention.
Object-Oriented Programming treats data as a critical element in the program development but does not allow it to flow freely around the systems.
Object-Oriented Programming ties data more closely to the functions that operate on it. It also protects data from any form of accidental modification from outside functions.
It allows the decomposition of a problem into several entities called objects and therefore builds data and functions around these objects.
In Object-Oriented Programming, you can only access the data of an object by using the function associated with that object.
Lastly, the functions of one object can be used to access the functions of any other object.
What are the features of object-oriented programming?
OOP follows a bottom-up approach in program design.
Programs in OOP are divided into what are referred to as objects.
OOP emphasizes data and not the procedure.
Data structures are designed in a way that they characterize the objects.
It is easy to add new data and functions at any time.
External functions cannot access data, as they are.
Objects could communicate with each other through functions.