What is a singleton object?
I'll answer
Earn 20 gold coins for an accepted answer.20
Earn 20 gold coins for an accepted answer.
40more
40more
Studied at the University of Barcelona, Lives in Barcelona, Spain.
1) In object-oriented programming , a singleton class is a class that can have only one object (an instance of the class) at a time. For example, using Visual C++ , the "Application" class is an example of a singleton class. You can only create only one object of an Application class.
2023-05-15 04:45:08
评论(499)
Helpful(122)
Helpful
Helpful(2)

Charlotte Patel
QuesHub.com delivers expert answers and knowledge to you.
1) In object-oriented programming , a singleton class is a class that can have only one object (an instance of the class) at a time. For example, using Visual C++ , the "Application" class is an example of a singleton class. You can only create only one object of an Application class.