Java:外卖团购系统
作者:互联网
Mode块:
package Model;
public abstract class MotoVehicle {
private String sym;//溯源码
private String name;//水果名称
private double price;//单价
public String getSym() {
return sym;
}
public void setSym(String sym) {
this.sym = sym;
}
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;
}
public MotoVehicle(String sym, String name, double price) {
this.sym = sym;
this.name = name;
this.price = price;
}
public MotoVehicle() {}
public abstract double calRent(int count);
}
package Model;
public class Fruits extends MotoVehicle{
private String add;
p
标签:Java,String,团购,price,sym,外卖,double,public,name 来源: https://blog.csdn.net/weixin_55804957/article/details/121917131