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 4 of 11.

Raj said:   9 years ago
Singleton used in the development of an application like public chat, cricket score.

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

Sima said:   1 decade ago
I cannot understand the concept of singleton class I think it can be virtual class.

Shonaya said:   1 decade ago
Same question is here what is singleton class is actually mean ?

Implementation ?

Divya said:   1 decade ago
In singleton class, what about the variable. Is there we use private constructor?

Davis said:   10 years ago
Only single class can be inherited, no multiple inheritance can take place here.

Bibhishan said:   1 decade ago
Singleton class has only one instance this concept given in the design pattern.

Rakesh Sharma said:   1 decade ago
Write the use of singleton class in a program in easy to understand language.

Kanika said:   1 decade ago
I don't know about singleton class..
and shouldn't it be protected class????

Priyanka said:   1 decade ago
I can't understand concept of singleton class? please explain with example.


Post your comments here:

Your comments will be displayed after verification.