Java:外卖团购系统

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
上一篇:vue备忘录-购物车案例


下一篇:五轴机械臂实现视觉抓取--realsense深度相机和五*度机械臂