0
How to create object of private constructor(s) of the class in Java.
If class having private constructor(s) then how to access it to create an object on other class.
3 Answers
+ 6
Private constructors are more commonly used when designing Singleton classes.
https://www.geeksforgeeks.org/singleton-class-java/
0
Sandeep Kushwaha
Constructors aren't meant to be private in the first place
0
https://code.sololearn.com/cQfDm0fH57Eq/?ref=app
this is constructor.