摘要:
// 定义一个接口 public interface IMessageService { void SendMessage(string message); } // 实现该接口 public class EmailService : IMessageService { public void Se 阅读全文
摘要:
using System; using System.Collections.Generic; using System.Linq; public interface ICar { void Drive(); } public class Car : ICar { public void Drive 阅读全文