namespace TestSealedClasses
public virtual void Show()
Console.WriteLine("This is Base Class.");
public class Derived : Base
public sealed override void Show()
Console.WriteLine("This is Derived Class.");
public class NextDerived : Derived
public static void Main(string[] args)
Base objBaseReference = new Derived();