using System;
namespace HidingDemo
{
public class Base
public virtual void Show()
Console.WriteLine("Show From Base Class.");
}
public class Derived : Base
public new void Show()
Console.WriteLine("Show From Derived Class.");
public class Program
public static void Main(string[] args)
Base objBase;
objBase = new Base();
objBase.Show();//Output ----> Show From Base Class.
objBase = new Derived();
objBase.Show();//Output--> Show From Base Class.
Derived objDerived;
objDerived = new Derived();
objDerived.Show();//Output ----> Show From Derived Class.
Console.ReadLine();