public class SoldState extends java.lang.Object implements State
Constructor and Description |
---|
SoldState(GumballMachine gumballMachine) |
Modifier and Type | Method and Description |
---|---|
void |
dispense() |
void |
ejectQuarter() |
void |
insertQuarter() |
java.lang.String |
toString() |
void |
turnCrank() |
public SoldState(GumballMachine gumballMachine)
public void insertQuarter()
insertQuarter
in interface State
public void ejectQuarter()
ejectQuarter
in interface State
public java.lang.String toString()
toString
in class java.lang.Object