1.

If A Method Is Declared As Protected, Where May The Method Be Accessed?

Answer»

A protected METHOD may only be ACCESSED by classes or INTERFACES of the same package or by subclasses of the class in which it is declared.

A protected method may only be accessed by classes or interfaces of the same package or by subclasses of the class in which it is declared.



Discussion

No Comment Found