namespace TestVirtualMethodsInConstructors
Console.WriteLine("Constructor of Base Class.");
public virtual void DoSome()
Console.WriteLine("This is Base Class.");
public class Derived : Base
Console.WriteLine("Constructor of Derived Class.");
public override void DoSome()
Console.WriteLine("This is Derived Class.");
public static void Main(string[] args)
Base objBase = new Derived();