1.

Which of the following best defines a class?(a) Parent of an object(b) Instance of an object(c) Blueprint of an object(d) Scope of an objectThis question was addressed to me in an international level competition.The origin of the question is OOPs Basic Concepts topic in division OOPs Concept & Features of Object Oriented Programming

Answer» RIGHT OPTION is (c) BLUEPRINT of an object

For explanation: A class is Blueprint of an object which describes/ shows all the functions and data that are provided by an object of a specific class. It can’t be CALLED as parent or instance of an object. Class in general describes all the PROPERTIES of an object.


Discussion

No Comment Found

Related InterviewSolutions