查看: 701|回复: 0

[Java学习] 滴滴选车系统,自己乱写的

发表于 2018-2-2 08:00:02

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;
}

}



回复

使用道具 举报