1.Class Son extends Father 时,若执行Son mSon = new Son();则会先调用父类Father的构造函数,再调用本身Son的构造函数;
2.如果Son和Father中都用相同的public static void Test()方法时,调用mSon.Test();不会调用父类的Test();没有static修饰时也不调用父类Test();因为并不是继承自父类,只是名字相同而已;若想在mSon.Test();中调用父类的Test()方法,可在mSon.Test();中写上super.Test(); 执行顺序是:父类构造方法-->子类构造方法-->mSon.Test();
3.如果Son中没有Test2()方法,而Father中有,则在执行mSon.Test2();时会直接调用父类Father的Test2();方法
4.父类中只要不是private修饰的变量,子类中都可以使用