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

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

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.

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

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

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?

Animesh priyadarshi said:   1 decade ago
@ nithya if in a class we don't want more than one object then we can choose singleton class..its purpose is to create only one object at a time

Greeshma said:   1 decade ago
Can you explane brifly like how to use a singleton class in a program?

Ramya said:   1 decade ago
How to use singleton class in our program?

Susi said:   1 decade ago
Tell me also what is singleton class ?

Difference between virtual and friend class ?

How to make singleton class ?

I can't get your definition. Can you make me understand easier ?

Nithya said:   1 decade ago
What is the purpose of singleton ?


Post your comments here:

Your comments will be displayed after verification.