摘要: C#new隐藏父类方法 Child child = new Child(); child.A(); child.B(); Parent p = child as Parent;//将child转型为一个parent p.A(); p.B(); Console.Read(); public class 阅读全文
posted @ 2022-05-04 18:09 有诗亦有远方 阅读(123) 评论(0) 推荐(0)