摘要:
一、类继承1 public class Father2 {3 }4 public class Child : Father5 {6 }二、接口继承1 public interface IBreath { }2 public interface IRun { }3 4 public class Animal : IBreath, IRun5 { }三、实现 1 public interface ISpeak 2 { 3 void Speak(); 4 } 5 public class Person : ISpeak 6 { 7 ... 阅读全文
posted @ 2013-08-01 17:40 天高地厚-GNU 阅读(180) 评论(0) 推荐(0) 编辑