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.

Nilesh said:   1 decade ago
Using any class we can create any number of objects 1, 2, 3. So on then why to use singleton class?

V.sriram said:   1 decade ago
I can't understand concept of singleton class? let you to explain?

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

Vai said:   1 decade ago
Whenever we a class gets loaded only one single class class object gets created for that class which is singleton for that particular class.

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

Dattatraya dhokane said:   1 decade ago
Can I get more info about singltone class.

Uma said:   1 decade ago
A class which is having only single object is called singleton.

Chandrababu said:   1 decade ago
What is the use of singleton class? please give me simple explanation.

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

Lalit Kumar Soni said:   1 decade ago
I can't understand following statement:

static A* m_objA;

And Also term Singleton & Longer class.


Post your comments here:

Your comments will be displayed after verification.