1. Home
  2. Computer Science MCQs
  3. PHP
  4. Fill in the blank with the best option. An Object is a/an…

Added 22 Jan 2024

Fill in the blank with the best option. An Object is a/an ___ of a class.

  1. type
  2. prototype
  3. instance Correct answer
  4. object

Correct answer

C. instance

12 views

MCQSEXAM

Explanation

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.

Doubts & discussion

Not sure why the answer is C? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More PHP MCQs

Practise all PHP MCQs

Similar MCQs