摘要:
关于继承public abstract class Animal { public abstract void ShowType(); public void Eat() { Console.WriteLine("Animal always eat."); } }public class Bird : Animal { private string type = "Bird"; public override void ShowType() { Console.WriteLine("Type is {0}", type); } pri 阅读全文