1.

Which definition best describes an object?(a) Instance of a class(b) Instance of itself(c) Child of a class(d) Overview of a classThis question was posed to me in an online quiz.Asked question is from Objects topic in portion OOPs Concept & Features of Object Oriented Programming

Answer»

The correct answer is (a) Instance of a class

Easy explanation - An object is instance of its class. It can be declared in the same WAY that a variable is declared, only THING is you have to USE class name as the DATA type.



Discussion

No Comment Found

Related InterviewSolutions