-
What is the use of protected keyword in Java 2024?
关键字
变量 方法
Questioner:Lucas Turner 2023-05-05 12:30:26
The most authoritative answer in 2024
-

-
Lucas Clark——Works at the International Development Association, Lives in Washington, D.C., USA.
The
protected keyword is an access modifier for method and variable of a class. When a method or a variable is marked as
protected, it can be accessed from: Within the enclosing class. Other classes in the same package as the enclosing class.
read more >>
About “关键字、变量、方法”,people ask:
QuesHub is a place where questions meet answers, it is more authentic than Quora, but you still need to discern the answers provided by the respondents.