记录下来以备日后往深地追: 父类构造器里的多态.
下面这段代码:
public class Qdb extends Depend{ int i = 30; public Qdb() { print(); super.print(); i = 40; } void print() { System.out.println("Target=> " + i); } public static void main(String[] args) { new Qdb(); }}class Depend{ int i = 10; public Depend() { print(); i = 20; } void print() { System.out.println("Depend=> " + i); }}