Exemple #1
0
        static void InterfaceExample()
        {
            Clown  clown  = new Clown();
            Scary  scary  = new Scary();
            IDrive driver = scary;

            DriveExample(scary);
        }
 public void LightsIn()
 {
     Main.Play();
     Scary.Stop();
 }
 public void LightsOut()
 {
     Main.Stop();
     Scary.Play();
 }