跟着网上的视频学的,还有个别地方写的不够好,主要学习dao模式,这里其中的BaseUtil类不错 DVD.java package com.dvd.entiy; public class DVD { private int id; private String dname; private int dcount; private int status; public DVD() { } public DVD(String dname, int dcount, int status) { supe…
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…
类图: 父类(车类,抽象类) /// <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…