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