Question: Why is the class constructor private in the Singleton pattern?
Why is the class constructor private in the Singleton pattern?
Step by Step Solution
3.52 Rating (155 Votes )
There are 3 Steps involved in it
The Singleton pattern is a software design pattern that restricts the instantiation of a class to a ... View full answer
Get step-by-step solutions from verified subject matter experts
