static void Main(string[] args) { amplifier amp=new amplifier(); DvdPlayer dvd =new DvdPlayer(); CdPlayer cd=new CdPlayer(); HomeTheaterFacade htf = new HomeTheaterFacade(amp, dvd, cd); htf.watchMovie("The Ring"); string z = Console.ReadLine(); }
public HomeTheaterFacade(amplifier amp, DvdPlayer dvd, CdPlayer cd) { this.amp = amp; this.dvd = dvd; this.cd = cd; }