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

T.srinivas said:   1 decade ago
Above example in that one getInstance word used what is mean by GetInstance and A*GetInstance how it come nd wts mean by A*GetInstance please anybody Explain clearly?

Madhavi Y.S. said:   1 decade ago
What I mean by singleton class?

Nitin H said:   1 decade ago
How we know the class is singleton class?

Keshworjit meitei said:   1 decade ago
Could you explain me about the singleton?

Siva said:   1 decade ago
I can't understand your definition. Can you easy to say?

Ganesh Vahinde said:   1 decade ago
The singleton class is such class which has only single instance, so that it's know as singleton class.

Awadh said:   1 decade ago
Please elaborate the functioning and use of this class, not getting properly.

Thanks.

Saedlovely said:   1 decade ago
Yeah singleton class is the one only to be created an object.

Kirya said:   1 decade ago
When is to call for the singleton class in the coding of C++ program?

BinaryWorld-PowerofEverything said:   1 decade ago
Everyone just wants to understand that if the Singleton class is a concept like 'virtual class' - for e.g. then how you will implement that singleton class?

- Any keyword is used?

- Any methods declaration inside that class will tell us that it is a singleton one? (e.g. Static methods).

- When the object of that class is created, will the compiler warn us not to do so?

- And some other questions.


Post your comments here:

Your comments will be displayed after verification.