001package headfirst.command.party;
002
003public class StereoOffCommand implements Command {
004        Stereo stereo;
005
006        public StereoOffCommand(Stereo stereo) {
007                this.stereo = stereo;
008        }
009
010        public void execute() {
011                stereo.off();
012        }
013
014        public void undo() {
015                stereo.on();
016        }
017}