difference between oop and pop

factor Procedure Oriented Programming(pop) Object Oriented Programming(oop)
Divided Into In POP, program is divided into small parts called functions. In OOP, program is divided into parts called objects.
Importance In POP, Importance is not given to data but to functions as well as sequence of actions to be done. In OOP, Importance is given to the data because it works as a real world.
Access Specifiers POP does not have any access specifier. OOP has access specifiers named Public, Private, Protected, etc.
Data Moving In 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.
Data Access In POP, Most function uses Global data for sharing that can be accessed freely from function to function in the system In OOP, data cannot move easily from function to function, it can be kept public or private so we can control the access of data.
Data Hiding POP does not have any proper way for hiding data so it is less secure. OOP provides Data Hiding so provides more security.
Overloading In POP, Overloading is not possible. In OOP, overloading is possible in the form of Function Overloading and Operator Overloading.
Programming Approach It follows top down approach. It follows bottom up approach.
Examples Examples of POP are: C, VB, FORTRAN, Pascal. Examples of OOP are: C++, JAVA, VB.NET, C#.NET.

Post a Comment

If you have any doubts, Please let me know
Thanks!

Previous Post Next Post