I need to design a class to represent an oven control unit containing:
- Three constants (COOK, BOIL, SELF_CLEANING) with values of 1, 2, & 3.
- Boolean value 'on' to represent oven is on or off
- Int value for cooking temp, actual temp, and cook time (in min)
- No-arg constructor that creates the oven
- Accessor & mutator methods for all the data fields
- a method for reportStatus to repost the state of oven and oven control for all data fields
So far I have:
public class Oven
{
final static double COOK = 1;
final static double BROIL = 2;
final static double SELF_CLEANING = 3;
boolean on;
int setTemp;
int actualTemp;
int setTime;
int ovenMode;
Oven()
{
}
reportStatus()
{
}
}
Still getting used to Java, anyone help me out here?