001package headfirst.facade.hometheater;
002
003public class PopcornPopper {
004        String description;
005
006        public PopcornPopper(String description) {
007                this.description = description;
008        }
009
010        public void on() {
011                System.out.println(description + " on");
012        }
013
014        public void off() {
015                System.out.println(description + " off");
016        }
017
018        public void pop() {
019                System.out.println(description + " popping popcorn!");
020        }
021
022
023        public String toString() {
024                return description;
025        }
026}