Quantcast
Channel: The Crazy Programmer
Viewing all articles
Browse latest Browse all 761

Difference between OOP and POP

$
0
0

Here you will learn about difference between OOP and POP.

Object Oriented Programming and Procedure Oriented Programming are two most popular programming paradigms. In this tutorial we will discuss the key differences between these two approaches.

Also Read: Difference between C++ and Java

Difference between OOP and POP

Image Source

Difference between OOP and POP

Object Oriented Programming (OOP) Procedure Oriented Programming (POP)
Problem Solving To solve a problem it is divided into smaller parts known as functions or procedures. Importance is given to functions or procedures. To solve a problem, it is divided into smaller parts known as objects. Importance is given to objects.
Approach It follows bottom up approach. It follows top down approach.
Code Reusability The existing code can be reused by the feature called inheritance. There is no such feature.
Data Hiding The data is kept secure in class using access specifiers private and protected.   The data is less secure as this paradigm doesn’t provide any way to hide it.
Modification Modification and addition of new feature is really easier. Modification and addition of new feature is difficult.
Problem Size It is suitable for solving big problems. It is not suitable for solving big problems.
Example C++, Java and Python are some examples of OOP languages. C, Fortran and Pascal are some examples of POP languages.

Comment below if you have any doubts or found any mistake in above tutorial.

The post Difference between OOP and POP appeared first on The Crazy Programmer.


Viewing all articles
Browse latest Browse all 761

Trending Articles