|
/** |
|
* ATMState is an abstract class that defines the state of the ATM. |
|
* This abstract class contains the default behavior for each state, which usually |
|
* renders a message to the display and does not perform any action. |
|
*/ |
|
public class ATMState { |
The explanation in the book is confusing because it mixes an interface and an abstract class, but the ATMState class itself is defined as a normal class.
ood-interview/atm/atm/states/ATMState.java
Lines 7 to 12 in 29b9ddc
The explanation in the book is confusing because it mixes an interface and an abstract class, but the
ATMStateclass itself is defined as a normal class.