cmsc433.p2
Class Food
java.lang.Object
cmsc433.p2.Food
public class Food
- extends java.lang.Object
Food is what is prepared by Cooks, and ordered by Eaters. Food
is defined by its name, and the amount of time it takes to prepare
by Machine. It is an immutable class. DO NOT CHANGE THIS CLASS.
|
Constructor Summary |
Food(java.lang.String name,
int cookTimeMS)
|
|
Method Summary |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
name
public final java.lang.String name
cookTimeMS
public final int cookTimeMS
Food
public Food(java.lang.String name,
int cookTimeMS)
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object