📄 testvisibleinherit.java
字号:
/** TestVisibleInherit.java */
class Parent {
private void aMethod(){}
void bMethod() {}
protected void cMethod() {}
public void dMethod() {}
}
class Child extends Parent {
public void aMethod() {} //允许, 但不是覆盖
void bMethod() {} //允许覆盖
public void cMethod() {} //允许覆盖
public void dMethod() {} //允许覆盖
/*
protected void cMethod() {} //允许覆盖
protected void dMethod() {} //不允许覆盖
*/
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -