C++ Programming - OOPS Concepts - Discussion

Discussion Forum : OOPS Concepts - General Questions (Q.No. 1)
1.
Which of the following type of class allows only one object of it to be created?
Virtual class
Abstract class
Singleton class
Friend class
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
104 comments Page 11 of 11.

Rupali said:   8 years ago
Singleton class is a class that can have only one object at a time.

Akshata said:   7 years ago
Singleton class is a class created only one object (instance) at a time.

Harsh Nandal said:   7 years ago
Singleton class is a class that can have only one object/element/instance at a time and is designed to control object creation.

Ningaraja G said:   7 years ago
Singleton class can create only one object, all others class we can't create object.


Post your comments here:

Your comments will be displayed after verification.