OOP stands for Object-oriented programming and is a programming approach that focuses on data rather than the algorithm, whereas POP, short for Procedure-oriented programming, focuses on procedural abstractions.
In OOP, the program is divided into small chunks called objects which are instances of classes, whereas in POP, the main program is divided into small parts based on the functions.
- Accessing Mode
Three accessing modes are used in OOP to access attributes or functions – ‘Private’, ‘Public’, and ‘Protected’. In POP, on the other hand, no such accessing mode is required to access attributes or functions of a particular program.
The main focus is on the data associated with the program in case of OOP while POP relies on functions or algorithms of the program.
In OOP, various functions can work simultaneously while POP follows a systematic step-by-step approach to execute methods and functions.
- Data Control
In OOP, the data and functions of an object act like a single entity so accessibility is limited to the member functions of the same class. In POP, on the other hand, data can move freely because each function contains different data.
OOP is more secure than POP, thanks to the data hiding feature which limits the access of data to the member function of the same class, while there is no such way of data hiding in POP, thus making it less secure.
- Ease of Modification
New data objects can be created easily from existing objects making object-oriented programs easy to modify, while there’s no simple process to add data in POP, at least not without revising the whole program.
OOP follows a bottom-up approach for designing a program, while POP takes a top-down approach to design a program.
Commonly used OOP languages are C++, Java, VB.NET, etc. Pascal and Fortran are used by POP.