Difference Between Procedure Oriented Programming (POP) & Object Oriented Programming (OOP)
Procedure Oriented Programming | Object Oriented Programming | |
1 | Programs are divided into small parts called functions. | Programs are divided into parts called Class. |
2 | Importance is not given to data but to functions as well as sequence of actions to be done. | Importance is given to the data rather than procedures or functions because it works as a real world. |
3 | POP follows Top Down approach. | OOP follows Bottom Up approach. |
4 | POP does not have any access specifier. | OOP has access specifiers named Public, Private, Protected, etc. |
5 | Data can move freely from function to function in the system. | Objects can move and communicate with each other through member functions. |
6 | To add new data and function in POP is not so easy. | OOP provides an easy way to add new data and function. |
7 | 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. |
8 | It does not have any proper way for hiding data, so it is less secure. | OOP provides Data Hiding. so provides more security. |
9 | Overloading is not possible. | In OOP, overloading is possible in the form of Function Overloading and Operator Overloading. |
10 | Example of Procedure Oriented Programming are : C, VB, FORTRAN,Pascal. | Example of Object Oriented Programming are :C++, JAVA, VB.NET, C#.NET. |
You must log in to post a comment.