private static void Main() { Bicycle bicycle = new Bicycle("Chicago Bicycle", 2011, "K-10", 100); bicycle.Color = "Red"; bicycle.GetDetails(); bicycle.Accelerate(50, bicycle); bicycle.Deaccelerate(10); if (bicycle.IsMoving()) { Console.WriteLine("Bicycle is moving"); } else { Console.WriteLine("Bicycle is not moving"); } Console.WriteLine(""); Bike bike = new Bike("Hero Bike", 2015, "H712", 200); bike.BikeColor = "Blue"; bike.GetDetails(); bike.Accelerate(30, bike); bike.Deaccelerate(40); bike.Stop(); if (bike.IsMoving()) { Console.WriteLine("Bike is moving"); } else { Console.WriteLine("Bike is not moving"); } Console.WriteLine(""); Car car = new Car("Honda Amaze", 2016, "VXi", 250); car.CarColor = "White"; car.GetDetails(); car.Accelerate(10, car); car.Deaccelerate(10); if (car.IsMoving()) { Console.WriteLine("Car is moving"); } else { Console.WriteLine("Car is not moving"); } Console.WriteLine(""); Truck truck = new Truck("Aven", 2010, "Z-20", 200); truck.TruckColor = "Orange"; truck.GetDetails(); truck.Accelerate(10, truck); truck.Deaccelerate(250); if (truck.IsMoving()) { Console.WriteLine("Truck is moving"); } else { Console.WriteLine("Truck is not moving"); } Console.ReadKey(); }