If a method is declared as protected, where may the method be accessed?
Short Answer
Views 2154
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.
Related Articles:
This section is dedicated exclusively to Questions & Answers. For an in-depth exploration of Java Programming Language, click the links and dive deeper into this subject.
Join Our telegram group to ask Questions
Click below button to join our groups.