1.

How are classes and objects implemented in C++? 

Answer»

A class is a blueprint for object. A class is implementing with the help of an object. Suppose a class has a member function named display(). Now, to implement that member function display we have to use object of that class.

The objects is implemented in software terms as follows: 

(i) characteristics / attributes are implemented through member variables or data items of the object.

(ii) behavior is implemented through member functions called methods.

(iii) It is given a unique name to give it identify



Discussion

No Comment Found

Related InterviewSolutions