using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
//抽象类的一个实例
namespace Abstruct
{
abstract class Abclass
{
public void IdentifyBase()
{
Console.WriteLine("I am AbClass!");
}
abstract public void IdentifyDerived();
}
class DerivedClass :Abclass
{
override public void IdentifyDerived()
{
Console.WriteLine("I Am DerivedClass");
}
}
class Program
{
static void Main(string[] args)
{
DerivedClass dc = new DerivedClass();
dc.IdentifyBase();
dc.IdentifyDerived();
Console.ReadKey();
}
}
}