Wednesday, 25 June 2014

What are Object Oriented Programming and Procedural Prgramming in C++.




Object Oriented Programming and Procedural Programming in C++


The Basic Difference Between the Object Oriented Programming and Procedural Programming in C++  Is 



 Object Oriented Programming

1. Here the basic focus is on Objects.
2. This follows a Bottom - up approach in a program.
3.It's ability of data hiding feature prevents the accidental change in data.
4. The basic features of this type are data encapsulation,polymorphism and  inheritence.

  

Procedural Programming

1.  Here the basic focus is on doing things ( that is the functions)
2.This follows a Top - down approach in a program.
3.In this case the presence of the global variables increase chances of accidental change in data.
4.The basic features like encapsulation , polymorphism etc.  are not available in this type of programming.
 





No comments:

Post a Comment