using System;
using System.Collections.Generic;
using System.Text;
namespace OOPs21
{
class BaseClass
{
public string ShowMe()
{
return "base";
}
}
class DerivedClass : BaseClass
{
public new string ShowMe()
{
return "derive";
}
public static void Main()
{
DerivedClass vardc = new DerivedClass();
Console.Write(vardc.ShowMe());
Console.ReadLine();
}
}
}
www.codecollege.NET
0 comments
Post a Comment