package com.duapp.itfanr;
class Atom {
Atom() {
System.out.println("A");
}
}
class Rock extends Atom {
Rock() {
System.out.println("B");
}
}
class Moutain extends Rock {
Moutain() {
System.out.println("C");
}
}
public class MainTest {
public static void main(String[] args) {
new Moutain();
}
//为什么结果不是C????
|
|