public class SuperDemo {
public static void main(String[] args) {
Fu f = new Zi();
}
}
class Fu {
int i = 4;
Fu() {
run();
show();
}
void show() {
System.out.println("Fu_test" + i);
}
void run() {
System.out.println("Fu_test" + i);
}
}
class Zi extends Fu {
int j = 7;
Zi() {
super();
show();
}
void show() {
System.out.println("Zi_test" + "8" + j);
}
} |
|