Multiple choice

Which of the following is true?

  1. An object is the instantiation of a class.

  2. A class is the implementation of an object.

  3. An object is the implementation of a class.

  4. A class is the instantiation of an object.

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

 In software engineering, the singleton pattern is a design pattern that restricts the instantiation of a class to one object. This is useful when exactly one object is needed to coordinate actions across the system.So option 1 is true..