QuesHub > 包中 > 私人 > 成员 > ASK DETAIL

What is protected Java?

Isabella Kim | 2023-05-05 12:30:33 | page views:1771
I'll answer
Earn 20 gold coins for an accepted answer.20 Earn 20 gold coins for an accepted answer.
40more

Zoe Peterson

Studied at University of Edinburgh, Lives in Edinburgh, UK
A private member is only accessible within the same class as it is declared. A member with no access modifier is only accessible within classes in the same package. A protected member is accessible within all classes in the same package and within subclasses in other packages.
2023-05-12 12:30:33

Samuel Carter

QuesHub.com delivers expert answers and knowledge to you.
A private member is only accessible within the same class as it is declared. A member with no access modifier is only accessible within classes in the same package. A protected member is accessible within all classes in the same package and within subclasses in other packages.
ask:3,asku:1,askr:137,askz:21,askd:152,RedisW:0askR:3,askD:0 mz:hit,askU:0,askT:0askA:4