-
What happens if constructor of class N is made private?
-
- Any class can instantiate objects of class N
- Inherited class can instantiate objects of class N
- classes within the same package as class A can instantiate objects of class N
- Objects of class N can be instantiated only within the class where it is declared
- None of these
Correct Option: D
If we make any class constructor private, we cannot create the instance of that class from outside the class.