Question Detail Which among following is correct way of declaring object of a class ? Classname Objectname;Class Classname Objectname;Class Classname Object Objectname;Classname Object Objectname; Answer: Option A Similar Questions : 1. Which variables cannot be declared ? structurepointerclassvoid Answer: Option D 2. Which of the following keywords are used to control access to a class member ? protectedswitchgotofor Answer: Option A 3. Destructors are called ? not definedin any orderin the reverse order of constructor callsin the same order of constructor calls Answer: Option C 4. The private data members of a class are accessible ? Directly to objects of that classTo any function defined outside a classOnly to the member functionsOnly using keyword static Answer: Option C 5. The advantage of declaring a virtual function as pure is ? programs runs fasterearly binding can be achievedyou force any derived class to define its own implementationyou can avoid making the class an abstract class Answer: Option C Read more from - C++ Programming Questions Answers - Set 2