📄 polytest.java
字号:
class Emp{
public void hi(){System.out.println("Hi,Emp!");}
}
class Temp extends Emp{
public void hi(){System.out.println("Hi,Temp!");}
}
class Mang extends Emp{
public void hi(){System.out.println("Hi,Mang!");}
}
class CorpOff extends Mang{
public void hi(){System.out.println("Hi,CorpOff!");}
}
class PloyTest{
public static void main(String args[])
{
Emp t;
t = new Emp();
t.hi();
t = new Temp();
t.hi();
t = new Mang();
t.hi();
t = new CorpOff();
t.hi();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -