Interview Questions   Tutorials   Discussions   Programs   Videos   

C++ - What are the main differences between procedure oriented languages and object oriented languages?




296
views
asked marvit August 24, 2014 09:24 AM  

What are the main differences between procedure oriented languages and object oriented languages?


           

1 Answers



 
answered By bhjahnavi   0  
  • In POP, program is divided into small parts called functions.In OOP, program is divided into parts called objects.
  • In POP,Importance is not given to data but to functions as well as sequence of actions to be done.In OOP, Importance is given to the data rather than procedures or functions because it works as a real world.
  • POP follows Top Down approach. OOP follows Bottom Up approach.
  • POP does not have any access specifier. OOP has access specifiers named Public, Private, Protected, etc.
  • Data Moving In POP, Data can move freely from function to function in the system. In OOP, objects can move and communicate with each other through member functions
  • To add new data and function in POP is not so easy. OOP provides an easy way to add new data and function.
  • In POP, Most function uses Global data for sharing that can be accessed freely from function to function in the system. In OOP, data can not move easily from function to function,it can be kept public or private so we can control the access of data.
  • POP does not have any proper way for hiding data so it is less secure. OOP provides Data Hiding so provides more security.
  • In POP, Overloading is not possible. In OOP, overloading is possible in the form of Function Overloading and Operator Overloading.
  • Example of POP are : C, VB, FORTRAN, Pascal. Example of OOP are : C++, JAVA, VB.NET, C#.NET.
flag   
   add comment

Your answer

Join with account you already have

FF

Preview


Ready to start your tutorial with us? That's great! Send us an email and we will get back to you as soon as possible!

Alert