If a constructor is declared as private, then its objects are only accessible from within the declared class . You cannot access its objects from outside the constructor class.
What happens when constructor is private?
If a constructor is declared as private, then its objects are only accessible from within the declared class . You cannot access its objects from outside the constructor class.