Fill in the blank with the best option. An Object is a/an ___ of a class.
Correct answer
C. instance
12 views
C. instance
12 views
An object is an instance of a class. The class is the blueprint that defines properties and methods; an object is a concrete thing built from that blueprint with the new keyword, holding its own data.
Many objects can be created from one class, each with different property values. This class-versus-instance distinction is the starting point of every object-oriented programming test.
Practise more Computer Science MCQs with answers and explanations on MCQsExam.com.
Not sure why the answer is C? Ask here and get an explanation.