public void Bad() { Ferrari f = new Ferrari(); f.Run(); f.OpenAirConditioning(); Murat131 m = new Murat131(); m.Run(); }
public void Bad() { Car car = new Ferrari(); car.Run(); car.OpenAirConditioning(); car = new Murat131(); car.Run(); //Exception car.OpenAirConditioning(); }