标签:style blog http color ar 使用 strong sp div
abstract class bProgram
{
public void a()
{
Console.WriteLine("I am bProgram ,I am a().");
}
}
abstract class aProgram:bProgram
{
public abstract void f();
}
class Program:aProgram
{
public override void f()
{
Console.WriteLine("I am bProgram,I am f().");
}
static void Main(string[] args)
{
Program p =new Program();
p.f();
Console.WriteLine("I am Program");
Console.Read();
}
}
结果为:
标签:style blog http color ar 使用 strong sp div
原文地址:http://www.cnblogs.com/LavenderDaisy/p/4033323.html