以下为句子列表:
英文: Adding a method to an interface is equivalent to adding an abstract method to a base class; any class that implements the interface will break because the class does not implement the new method.
中文: 对于一个类来说添加接口和添加抽象类是一样的;执行接口的时候类会中断,因为类不能执行新的方法。
更详细...
英文: Any class with an abstract method is automatically abstract itself, and must be declared as such.A class may be declared abstract even if it has no abstract methods.
中文: 任一类以一个抽象方法自动地是抽象的本身,且必须被声明,一个类可以被声明是抽象的既使它没有抽象方法。
更详细...
|