CS计算机代考程序代写 AbstractFood.class

AbstractFood.class

Food.class

Fries.class

Kitchen.class

Oven.class

Potato.class

AbstractFood

public synchronized class AbstractFood implements Food {
protected boolean cooked;
protected boolean burnt;
protected boolean once;
protected boolean twice;
protected int cookTemperature;
protected int burnTemperature;
protected int cookTime;
protected int burnTime;
public void AbstractFood();
public void cook(int, int);
}

Food

public abstract interface Food {
public abstract void cook(int, int);
}

Fries

public synchronized class Fries extends AbstractFood {
public void Fries();
public String toString();
}

Kitchen

public synchronized class Kitchen {
private Oven oven;
public void Kitchen();
public static void main(String[]);
public String cookPotato();
public String burnPotato();
public String doubleCookPotato();
public String cookFries();
public String burnFries();
public String doubleCookFries();
}

Oven

public synchronized class Oven {
private final int maxTemperature;
private int currentTemperature;
public void Oven();
public void Oven(int);
public void setTemperature(int);
public int getCurrentTemperature();
public int getMaxTemperature();
public void insertFood(Food, int);
}

Potato

public synchronized class Potato extends AbstractFood {
public void Potato();
public String toString();
}