Difference Between Procedure Oriented Programming (POP) & Object-Oriented Programming (OOP) | C++ Programming


Procedure Oriented ProgrammingObject-Oriented Programming
Divided IntoIn POP, the program is divided into small parts called functions.In OOP, the program is divided into parts called objects.
ImportanceIn POP, Importance is not given to data but to functions as well as the sequence of actions to be done.In OOP, Importance is given to the data rather than procedures or functions because it works as a real world.
ApproachPOP follows Top-Down approach.OOP follows Bottom-Up approach.
Access SpecifiersPOP does not have any access specifier.OOP has access specifiers named Public, Private, Protected, etc.
Data MovingIn POP, Data can move freely from function to function in the system.In OOP, objects can move and communicate with each other through member functions.
ExpansionTo add new data and function in POP is not so easy.OOP provides an easy way to add new data and functions.
Data AccessIn POP, the Most function uses Global data for sharing that can be accessed freely from function to function in the system.In OOP, data can not move easily from function to function,it can be kept public or private so we can control the access of data.
Data HidingPOP does not have any proper way for hiding data so it is less secure.OOP provides Data Hiding so it provides more security.
OverloadingIn POP, Overloading is not possible.In OOP, overloading is possible in the form of Function Overloading and Operator Overloading.
ExamplesExample of POP are : C, VB, FORTRAN, Pascal.Example of OOP are : C++, JAVA, VB.NET, C#.NET.
Share To:

Arogya Thapa Magar

Post A Comment:

0 comments so far,add yours