Header Ads Widget

Different between POP and OOP || POP vs OOP

 

Comparison of procedural with object-oriented programming

The focus of procedural programming is to break down a programming task into a collection of data structures and subroutines, whereas in object oriented programming it is to break down a programming task into objects. Both method can be applicable for complete a specific programming task.

The most popular programming language usually has both OOP and procedural feature.




 

Different between POP and OOP

 

POP

 

OOP

It is a top down approach.

 

It is a bottom-up approach.

 

In POP data uses globally.

Data is used by an associated function within the class.

 

Due to global data, it is less secure language.

 

It is more secured language because external function can’t access another data.

 

It takes less memory space.

 

 

It takes more memory space.

There is no any access specifier.

 

 

There is private, public, protected access specifier.

Example :

C, BASIC, COBOL etc…

 

Example :

C++, JAVA, PYTHON, PHP etc…

 

Post a Comment

0 Comments