Singleton class question | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Singleton class question

i know that private constructor prevent class from creating more than 1 object but how does it prevent it.sorry i do not understand the concept.

31st Oct 2017, 10:03 AM
oyl
1 Answer
0
sorry i have no idea what u are saying.my foundation is still very weak.can you elaborate more
31st Oct 2017, 10:28 AM
oyl