Preventing call of a private constructor from within the class in Java
Asked 2010-05-23T19:04:01.413
10
We can restrict the creation of object of a class by making its constructor private.
But this constructor could still be called from within the class.
Is there any way to prevent this in Java?