Google News
logo
CPP - Quiz(MCQ)
Which of the following class allows to declare only one object of it?
A)
Singleton class
B)
Abstract class
C)
Virtual class
D)
None of the above

Correct Answer :   Singleton class


Explanation : Singleton class allows the programmer to declare only one object of it, If one tries to declare more than one object the program results into error.

Advertisement