private static void CallInterfaceClassToExample3Output() { // creating an instance of Bicycle // doing some operations Bicycle bicycle = new Bicycle(); bicycle.ChangeGear(2); bicycle.SpeedUp(3); bicycle.ApplyBrakes(1); Console.WriteLine("Bicycle present state :"); bicycle.printStates(); // creating instance of bike. Bike bike = new Bike(); bike.ChangeGear(1); bike.SpeedUp(4); bike.ApplyBrakes(3); Console.WriteLine("Bike present state :"); bike.printStates(); }