Scope Current class Same package descendant class Other packages
public √ √ √ √
protected √ √ √ ×
friendly √ √ × ×
private √ × × ×
The scope of public, protected, friendly, private
Guess you like
Origin http://43.154.161.224:23101/article/api/json?id=326265995&siteId=291194637
Recommended
Ranking