public class CeilingFanOffCommand extends java.lang.Object implements Command
Modifier and Type | Field and Description |
---|---|
(package private) CeilingFan |
ceilingFan |
(package private) int |
prevSpeed |
Constructor and Description |
---|
CeilingFanOffCommand(CeilingFan ceilingFan) |
Modifier and Type | Method and Description |
---|---|
void |
execute() |
void |
undo() |
CeilingFan ceilingFan
int prevSpeed
public CeilingFanOffCommand(CeilingFan ceilingFan)