Example #1
0
        public void Bad()
        {
            Ferrari f = new Ferrari();

            f.Run();
            f.OpenAirConditioning();

            Murat131 m = new Murat131();

            m.Run();
        }
Example #2
0
        public void Bad()
        {
            Car car = new Ferrari();

            car.Run();
            car.OpenAirConditioning();


            car = new Murat131();

            car.Run();
            //Exception
            car.OpenAirConditioning();
        }