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

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.

Abc said:   1 decade ago
The names of variables, function, labels and various other user-defined objects are called what?

Sush said:   1 decade ago
Please explain in detail, what is singleton class?

Ranjeet said:   1 decade ago
If the constructor is private how we can create instance of class?

Diksha said:   1 decade ago
What us the proper meaning of instances and instantiated?

Kirshana sagar NIM said:   1 decade ago
Tell me also what is singleton class?

Mkn said:   1 decade ago
Where we are using singleton class?

Ankit said:   1 decade ago
What is singleton class?

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

Implementation ?

Sabiha said:   1 decade ago
Please briefly explain about the singleton class in simple words.


Post your comments here:

Your comments will be displayed after verification.