Interviews2 answers
What is the most common use of a private constructor?
2 Answers
to prevent to instance for a class from outside world
Umesh MauryaPosted Feb 3, 2016, 4:15 AM EST
A private constructor may be used to prevent the creation of an instance for a class.
Vithal WadjePosted Oct 17, 2012, 2:45 AM EDT


