Translate

Search This Blog

Saturday, 8 March 2014

Difference between Object Oriented Programming Language and Procedural Programming Language .


                                 Procedural Programming                                       Object Oriented Programming


Divided into :   In procedural language program is divided          In Object Oriented language ,                     program is into small parts called function .                      divided into parts called                                                                                                                   Objects.


Importance :   In Procedural language importance is not            • In Object Oriented Programming
                         given to Data but to function as well as              importance is given to the data rather than
                             sequence of action to be done .                      procedures or function because it works
                                                                                                     as a Real World .

Approach :    Procedural languages follows Top-Down             • Object Oriented Languages follows
                      Approach.                                                                    Bottom-Up Approach .

Access
Specifier :  
Procedural languages does not have any                  Object Oriented Programming has                      access specifier.                                                     specifier named Public, Private ,
                                                                                                                 Protected etc .

Expression :
 To add new data and function in Procedural       • Object Oriented Language provide an easy
                       Language is not so easy                                              way to add new data and function .

Data
Access :    
In Procedural Language , Most Function used        In Object Oriented Language data can not
                  for sharing that can be accessed freely from              be moved easily from function to function,
                  function to function in the system.                              it can be kept public or private so we can
                                                                                                 control the access of data.

Data

Hiding :   Procedural Language does not have any proper       • Object Oriented Language provide data
                way for hiding data so it is less secure .                          hiding so provides more                                                                                                                             security.

Overloading:   
In Procedural Language , Overloading is not    • In Object Oriented Language , overloading
                         possible.                                                              is possible of function Overloading and                                                                                                            Operators Overloading .

No comments:

Post a Comment