摘要: 简单工厂设计模式的核心,根据用户的输入创建对象赋值给父类 using System; namespace 工厂设计模式 { class Program { static void Main(string[] args) { Console.WriteLine("请输入您想要的笔记本品牌"); str 阅读全文
posted @ 2023-02-11 20:11 春哥博客 阅读(20) 评论(0) 推荐(0)
摘要: 多态实现让电脑去读写各种移动设备的数据 using System; namespace 电脑_移动硬盘_U盘_MP3 { class Program { static void Main(string[] args) { MobileStorage ms = new Udisk(); ms.Read 阅读全文
posted @ 2023-02-11 16:12 春哥博客 阅读(49) 评论(0) 推荐(0)