public static void Abstract_Classes_and_Functions() { // BaseAbs Babs = new BaseAbs(); // 错误 抽象类不能实例化 BaseAbs Abs1 = new DeriveAbs(); DeriveAbs DAbs1 = new DeriveAbs(); Abs1.AbstractMethod(); // 输出 DeriveAbs AbstractMethod DAbs1.AbstractMethod(); // 输出 DeriveAbs AbstractMethod }