Java教程

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
这篇关于Java:外卖团购系统的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!