手记

滴滴选车系统,自己乱写的

package com.didi;

public class Car {
private int id;//序号
private String name;// 车辆名称
private double price;//价格
private double load;//载重
private int seat;//载客
public double getLoad() {
return load;
}
public void setLoad(double load) {
this.load = load;
}
public int getSeat() {
return seat;
}
public void setSeat(int seat) {
this.seat = seat;
}
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public double getPrice() {
return price;
}
public void setPrice(double price) {
this.price = price;
}

}

0人推荐
随时随地看视频
慕课网APP