1.

Which other keywords are also used to declare the class other than class?(a) struct(b) union(c) object(d) both struct & unionI have been asked this question in semester exam.Origin of the question is Classes topic in division Source Files, Classes and Operator Overloading in C++ of C++

Answer» CORRECT OPTION is (d) both STRUCT & union

Easiest explanation - Struct and union take the same definition of CLASS but differs in the access techniques.


Discussion

No Comment Found

Related InterviewSolutions