1.  
  2. class TestMotorcycle : Motorcycle
  3. {
  4.  
  5. public override double GetTopSpeed()
  6. {
  7. return 108.4;
  8. }
  9.  
  10. static void Main()
  11. {
  12. TestMotorcycle moto = new TestMotorcycle();
  13.  
  14. moto.StartEngine();
  15. moto.AddGas(15);
  16. moto.Drive(5, 20);
  17. double speed = moto.GetTopSpeed();
  18. Console.WriteLine("My top speed is {0}", speed);
  19. }
  20. }
  21.