001package headfirst.facade.hometheater;
002
003public class TheaterLights {
004        String description;
005
006        public TheaterLights(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 dim(int level) {
019                System.out.println(description + " dimming to " + level  + "%");
020        }
021
022        public String toString() {
023                return description;
024        }
025}