📄 inher14.java
字号:
class A{
int a=1;
A(){
System.out.println("A努贰胶 积己磊 角青");
}
}
class B extends A{
int b=2;
B(){
System.out.println("B努贰胶 积己磊 角青");
}
}
class C extends B{
int c=3;
C(){
System.out.println("C努贰胶 积己磊 角青");
}
}
public class Inher14{
public static void main(String[] args){
C ob=new C();
System.out.println(ob.a);
System.out.println(ob.b);
System.out.println(ob.c);
System.out.println(ob.toString());
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -