- Is declared as a public way must also be public in subclass the superclass;
- In the superclass is declared as a protected method in a subclass can be protected or public, but can not be private;
- For process (without the use of qualifiers) without access control, the access control sub-category which may be more stringent.
[] Java java access control and inheritance rules
Guess you like
Origin www.cnblogs.com/china-flint/p/12457301.html
Ranking