类图: 父类(车类,抽象类) /// <summary> /// 车辆基本信息类.搞一个抽象类玩玩 /// </summary> public abstract class Vehicle { public string Color { get; set; }//颜色 public double DailyRent { get; set; }//日租金 public string LicenseNo { get; set; }//车牌号 public string Name { g…
Truck.cs类 //卡车类 public class Truck : Vehicle1 { //重载 public int Load { get; set; } //构造函数 public Truck(string color, double dailyrent, string licenseNO, string name, int rentDate, string rentUser, int yearsOfService, int load) :base(color, dailyren…