📄 superdemo_2.java
字号:
package com.iss.five;
class People{
protected int age ;
protected void show(){
System.out.println("父类 Show");
}
}
public class SuperDemo_2 extends People {
protected void show(){
System.out.println("子类 Show");
}
public void testShow(){
this.show();
super.show();
}
public static void main(String[] args) {
SuperDemo_2 s = new SuperDemo_2();
s.testShow();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -