1.

which statement is true?

Answer» The ParentUtil instance p cannot be used to access the doStuff() method. Because doStuff() has protected access, and the ChildUtil class is not in the same package as the ParentUtil class, doStuff() can be accessed only by instances of the ChildUtil class (a subclass of ParentUtil). Option A, B and D are incorrect because of the access rules described previously.


Discussion

No Comment Found