1.

What happens if constructor of class N is made private?

A. Any class can instantiate objects of class N
B. Inherited class can instantiate objects of class N
C. classes within the same package as class A can instantiate objects of class N
D. Objects of class N can be instantiated only within the class where it is declared
E. None of these
Answer» E. None of these


Discussion

No Comment Found

Related MCQs