Wednesday 25 June 2014

Difference Between an Object and a Class in C++ .




An Object and  a Class in  C++

 The basic difference Between the Object and a Class in a C++ program is


Object 

An object is basically an identifiable entity with some characteristics and behaviour.

It also behaves as an entity that has the ability to store data and its associated functions.

Class 

A class in a C++ is basically a group of objects that share common properties and relationships.

And in another way can be said as a group of similar objects.




No comments:

Post a Comment