摘要:1,首先这个问题是建立在父类对象指向子类类型的,先不多说了,先上代码代码一:输出结果为 A、B、A.funView Code 1 using System; 2 3 namespace ConsoleApplication1 4 { 5 class Program 6 { 7 static void Main(string[] args) 8 { 9 A a = new B();10 a.fun();11 }12 }13 14 public class A15 ...
阅读全文
posted @ 2013-04-14 17:21
浙公网安备 33010602011771号