DIFFERENCE BETWEEN OOP AND POP
Oops is stands for object oriented programming. It is a programming language model organized around objects. One of the great benefits of oop is that of scalability, with objects and definition having no finite limitation. In oop, program is divided into parts called objects. oop use object to call the member function of the class. 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.
{tocify} $title={Table of Contents}
Definition of POP:-
Pop is stand for procedure oriented programming.
A program in a procedural language is a list of instruction where each
statement tells the computer to do something. It focuses on procedure (function)
& algorithm is needed to perform thee derived computation.
Difference between oop and pop:-
Procedural oriented programming
|
Object oriented programming
|
|
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 function as well as sequence of action to be done. |
In oop importance is given to the data rather than procedures or functions because it works as a real word. |
Approach
|
Pop follows Top Down Approach.
|
Oops follows Bottom Up Approach
|
Access specifiers
|
Pop does not have any access specifier.
|
Oop has access specifier named public, private, protected, etc.
|
Data
moving
|
In pop, data can moved freely from function to function in the
program.
|
In oop, objects can moved and communicated with each other
through member functions.
|
Expansion
|
To add new data and function in pop is not so easy.
|
Oop provides an easy way to add new data and function.
|
Data Access
|
In pop, most function uses global data for sharing that can be
accessed freely from function to function in the program.
|
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 mare security.
|
Overloading
|
In pop, overloading is not possible
|
In oop, overloading is possible in the form of function
overloading and operator overloading.
|
Friend function
|
No concept of friend function
|
Classes or function can become a
friend of another class with the keyword “friend”.
|
Virtual classes/function
|
No concept of virtual classes/function
|
Concept of virtual classes/function
appear during inheritance.
|
Inheritance
|
There is no provision of inheritance.
|
Inheritance achieved in three modes public private and
protected.
|
Examples
|
Example of pop are:-C, VB, FORTRAN, Pascal
|
Example of oop are:-C++, JAVA, VB.NET, C#.NET.
|