2012年8月23日

浅析继承关系中的方法调用

摘要: 我们首先来看一段代码: 1 class Program 2 { 3 static void Main(string[] args) 4 { 5 Father father=new Son(); 6 father.SayHi(); 7 Console.ReadKey(); 8 } 9 }10 class Father11 {12 public void SayHi()13 {14 ... 阅读全文

posted @ 2012-08-23 18:59 西夏普砖家 阅读(580) 评论(4) 推荐(0) 编辑

导航