public class PK {public static void main(String[] args) {new B();}}class A {int x = 5, y = 3;A() {
a();
}
void a() {
System.out.println(x * y+"1111111");
}}class B extends A {int z = 4;void a() {
System.out.println(x * y * z+"22222");
}}
添加回答
举报
0/150
提交
取消