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