摘要: // 定义一个接口 public interface IMessageService { void SendMessage(string message); } // 实现该接口 public class EmailService : IMessageService { public void Se 阅读全文
posted @ 2023-03-15 21:49 紫月银空 阅读(268) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Collections.Generic; using System.Linq; public interface ICar { void Drive(); } public class Car : ICar { public void Drive 阅读全文
posted @ 2023-03-15 21:17 紫月银空 阅读(284) 评论(0) 推荐(0) 编辑