摘要: 1.抽象方法在抽象类里,继承后必须重写,抽象类可包含虚方法 2.虚方法继承后可以直接使用 class Program { static void Main(string[] args) { Myanimal ma = new Myanimal(); ma.Eat1(); } class Myanim 阅读全文
posted @ 2020-02-15 11:45 天才小鱼干 阅读(515) 评论(0) 推荐(0)