• Any class that declares an abstract method must itself be declared abstract.

    声明抽象方法任何本身必须声明为抽象的。

    youdao

  • Offering both an interface and an abstract class is redundant, but I find it convenient: in most cases, I only need the abstract class, but the interface enables multiple inheritance.

    同时提供接口抽象多余的,发现这样很方便大多数情况下,我需要抽象类,但接口支持继承性

    youdao

  • It isn't always possible to define an interface in an abstract class, but in the light of evolution you should consider whether an abstract class is sufficient.

    尽管不是抽象定义接口,但是编程过程中总是免不了考虑下一个抽象类够不够呢。

    youdao

  • You can declare standard and abstract methods in an abstract class, as shown in Listing 5.

    可以抽象声明标准抽象方法如清单5

    youdao

  • Notice that an abstract class is denoted by italicized text, as are abstract methods.

    注意抽象和抽象方法斜体表示

    youdao

  • For those unfamiliar with themes, the abstract MetalTheme class offers a way to abstract away the colors and fonts used by the look and feel.

    如果您不熟悉主题,那么抽象MetalTheme提供了一个抽象外观使用颜色字体方法

    youdao

  • Typically this is implemented by having an abstract class that has a static create method that returns a concrete object implementing the abstract class.

    这种模式的典型实现方式创建抽象,其中具有静态方法create,这个方法返回的是实现了这个抽象类的一个具体对象

    youdao

  • abstract indicates to the compiler that, yes, this class is supposed to be abstract.

    abstract编译指出是的这个应该抽象的。

    youdao

  • This indicates that the BankAccount class is an abstract class and the withdrawal method is an abstract operation.

    表示BankAccount一个抽象类,而withdrawal方法是抽象的操作

    youdao

  • A child class that extends an abstract class must implement all abstract methods in its parent or itself be declared abstract.

    继承抽象子类必须实现其父自身声明为抽象的所有抽象方法

    youdao

  • Because having an abstract method makes it an abstract class. The reasoning is circular.

    因为抽象方法使得一个抽象推理圆形的。

    youdao

  • Each of these is an abstract class, complete with two non-abstract inner classes called Double and Float (which are subclasses of the abstract outer class).

    其中个都抽象,他们都是两个名为DoubleFloat的非抽象内部(它们抽象外部类子类)。

    youdao

  • And, as you may have noticed, we could have achieved the same effect as the code in Listings 1-3 by using an abstract class (abstract classes are described in Chapter 6).

    而且正如可能注意到的,我们可以通过使用抽象获得清单1 - 3代码同样效果(抽象第6描述的)。

    youdao

  • That's is the reason abstract methods should be in abstract class (so that one cannot create the object for the abstract class) or interfaces only.

    抽象方法应该抽象原因(使不能创建抽象类的对象)接口

    youdao

  • What is the point of having non abstract methods in the abstract class if a new object of the abstract class can't be created?

    具有抽象方法抽象如果一个新的抽象类对象不能创建什么

    youdao

  • I understand that in abstract classes methods be both abstract, or not. But why can I not create an abstract method in a "normal", non-abstract class?

    理解抽象中的方法都是抽象的,为什么不能创建抽象方法在“正常”,非抽象类?

    youdao

  • So, if you inherit the abstract class in multiple concrete classes, then the properties of the abstract class will be part of each table of the concrete class.

    因此如果多个具体中,继承抽象的话,那么这个抽象类属性会是每一个具体类(表)的属性的一部分

    youdao

  • However if you had an abstract method in a non-abstract class, you could instantiate the class and get an object, that would have an unimplemented method, which you would be unable to call.

    但是如果摘要方法非抽象,你可以实例对象实现的方法,你将无法调用。

    youdao

  • Linker error from not declaring abstract method in abstract base class?

    链接错误不能声明抽象方法的抽象

    youdao

  • Because having an abstract method makes it an abstract class.

    因为抽象方法使得一个抽象

    youdao

  • Derived classes of the abstract class must implement all abstract methods.

    抽象类别衍生类别必须实作所有抽象方法

    youdao

  • When the class itself is inherited from an abstract class, but not all base abstract methods have been over-ridden.

    抽象中可以方法的实现,可以指定方法的访问修饰符。

    youdao

  • The abstract class contains abstract members.

    抽象包含抽象成员

    youdao

  • If the normal class contains abstract method, then one can creating the object for that class and may call the abstract method just like normal method.

    如果正常包含抽象方法可以创建该类的对象可以调用抽象方法普通的方法。

    youdao

  • An abstract class may contain abstract methods and accessors.

    抽象类别可能会包含抽象方法存取子

    youdao

  • 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.

    一类抽象方法自动地抽象的本身必须声明可以被声明是抽象的使没有抽象方法

    youdao

  • An abstract class can have both abstract and non abstract methods.

    抽象可以抽象抽象方法

    youdao

  • If you have an abstract class (any class with an abstract method becomes an abstract class), you can not create an object of that class.

    如果抽象(任何抽象方法成为一个抽象类),不能创建该类一个对象

    youdao

  • Q. are you still following the principle of Program to an interface if you are creating abstract methods in an abstract class that is not linked to an interface?

    问:遵循面向接口编程原则如果抽象是不是一个接口创建抽象方法

    youdao

  • An abstract class that implements an interface might map the interface methods onto abstract methods.

    实作面的抽象类别可能介面方法对应到抽象方法。

    youdao

$firstVoiceSent
- 来自原声例句
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定