Why Singleton class is used?
I'll answer
Earn 20 gold coins for an accepted answer.20
Earn 20 gold coins for an accepted answer.
40more
40more
Works at Facebook, Lives in Menlo Park, CA
The Singleton pattern is used in the design of logger classes. This classes are ussualy implemented as a singletons, and provides a global logging access point in all the application components without being necessary to create an object each time a logging operations is performed.
2023-05-11 04:45:24
评论(499)
Helpful(122)
Helpful
Helpful(2)

Oliver White
QuesHub.com delivers expert answers and knowledge to you.
The Singleton pattern is used in the design of logger classes. This classes are ussualy implemented as a singletons, and provides a global logging access point in all the application components without being necessary to create an object each time a logging operations is performed.