Example #1
0
        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();
        }
Example #2
0
 public HomeTheaterFacade(amplifier amp, DvdPlayer dvd, CdPlayer cd)
 {
     this.amp = amp; this.dvd = dvd; this.cd = cd;
 }