Wednesday, May 29, 2013

Object oriented Programmming v/s Object Based Programming



Sr#
Procedure-Oriented Language
Object-Oriented Language
1.
In POP, importance is given to the sequence of things to be done i.e. algorithms.
In OOP, importance is given to the data.
2.
In POP, larger programs are divided into functions.
In OOP, larger programs are divided into objects.
3.
In POP, most functions share global data i.e. data move freely around the system from function to function.
In OOP mostly the data is private and only functions inside the object can access the data.
4.
POP follows a top down approach in problem solving.
OOP follows a bottom up approach.
5.
In POP, adding of data and function is difficult.
In OOP, it is easy.
6.
In POP, there is no access specifier.
In OOP, there are public, private and protected specifiers.
7.
In POP, operator cannot be overloaded.
In OOP, operator can be overloaded.
8.



9.
In POP, Data moves openly around the system from function to function.


Example of Procedure-Oriented Programming Language:
o   C
 
In OOP, objects communicate with each other through member functions.


Example of Object-Oriented Programming Language:
o   Ada
o   Algol
o   C++
o   Java
o   Dot Net
o   Small talk
o   Object Pascal
o   Object Cobol
 



No comments:

Post a Comment