fork download
  1. using System;
  2. using System.Collections;
  3. using System.Collections.Generic;
  4. class Program
  5. {
  6. static void Main(string[] args)
  7. {
  8. LandVehicle obj=new LandVehicle();
  9. Console.ReadLine();
  10. }
  11. }class Vehicle
  12. {
  13. public Vehicle()
  14. {Console.WriteLine("Base");
  15. }public Vehicle(string param)
  16. {Console.WriteLine("param");
  17. }
  18. }class LandVehicle:Vehicle
  19. {public LandVehicle():base("I am a different constructor")
  20. {Console.WriteLine("derived");
  21. }
  22. }
Success #stdin #stdout 0s 131776KB
stdin
Standard input is empty
stdout
param
derived