interface ISuper{ int GetAge(); } class HePi : ISuper{ public int GetAge(){ return 18; } }
接口里面的都是抽象方法,继承接口后,需要实现接口里面的所有方法