Added changes to "What can be inherited ?" section (#19147)
This commit is contained in:
committed by
Quincy Larson
parent
26e0d7bcec
commit
806b67b684
@ -50,7 +50,7 @@ Therefore, whenever you need to share some common piece of code between multiple
|
||||
|
||||
## What can be inherited ?
|
||||
|
||||
* All `protected` and `public` fields and methods from parent
|
||||
* All `protected` and `public` members (fields, methods, and nested classes) from parent, regardless what package the sub-class is in. If a sub-class is in the same package as its parent, it will also inherit `package-private` members from parent.
|
||||
|
||||
## What cannot be inherited ?
|
||||
|
||||
|
Reference in New Issue
Block a user