In an implementation of the singleton pattern there is no co

In an implementation of the singleton pattern, there is no constructor.

True or False?

Solution

Answer: False

In an implementation of the singleton pattern, there is only one constructor that is private constructor. Private cnstructor will not allow to create multiple instances for that class. So we can create only one instance for that class. if we want to avoid to create multiple instances for thee same then we have to go for Singleton Class.

In an implementation of the singleton pattern, there is no constructor. True or False?SolutionAnswer: False In an implementation of the singleton pattern, there

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site