1.

If a constructor is defined in protected access, then?

A. It s instance can be created inside the subclasses
B. It s instance can be created anywhere in the program
C. It s instance can be created inside the subclasses and main() function
D. It s instance can be created inside the parent class only
Answer» B. It s instance can be created anywhere in the program


Discussion

No Comment Found