抽象函数没有实现,只能在抽象类上声明。这迫使派生类提供实现。虚函数提供了默认实现,它可以存在于抽象类或非抽象类上。因此,例如:public abstract class myBase{ //If you derive from this class you must implement this method. notice we have no method body here either public abstract void YouMustImplement(); //If you derive from this class you can change the behavior but are not required to public virtual void YouCanOverride() { }}public class MyBase{ //This will not compile because you cannot have an abstract method in a non-abstract class public abstract void YouMustImplement();}