1.

What does a class in C++ holds?(a) data(b) functions(c) both data & functions(d) arraysThis question was posed to me in quiz.My question comes from Classes topic in section Source Files, Classes and Operator Overloading in C++ of C++

Answer»

Right answer is (C) both data & functions

The EXPLANATION: The classes in C++ encapsulates(i.e. PUT together) all the data and functions related to them for manipulation.



Discussion

No Comment Found

Related InterviewSolutions