Friday, August 7, 2009

THE OBJECT ORIANTED APPROACH

The fundamental idea behinding object orianted languages is to combine in to a single unit both data and hte functins that operate on that data such a unit called an object. So here an object in c++ is nothing but a variable which holds both data members and the operations associated with the data members and this evolution of objects as lead to the number of new concepts such as Data Encapsulation and dData hiding.
As you know in our real life we come across with a number of objects and we tryto identify this objects by differentiating them in to classes.the programming technique in object oriented programming languages is to the first create a class with data members and member functions and members of that class can be accessed only by the member functions of the class but not by any outside function is called is called as Data hiding and encapsulating Data members with member functions is called as Data Encapsulation.

No comments:

Post a Comment