• 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

  • 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

  • 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

  • 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

  • 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

  • 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

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

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

    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

  • 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

  • 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

  • Having an abstract method prevents a class from being instantiated, thus making it a de-facto abstract class.

    一个抽象方法防止实例化因此德事实上的抽象类。

    youdao

  • When an abstract class is subclassed, the subclass usually provides implementations for all of the abstract methods in its parent class.

    通常一个抽象派生子类,子类提供了实现抽象方法

    youdao

  • Members marked as abstract, or included in an abstract class, must be implemented by classes that derive from the abstract class.

    标记抽象包含抽象中的成员必须通过抽象类派生来实现

    youdao

  • When a nonabstract class is derived from an abstract class, the nonabstract class must include actual implementations of all inherited abstract members, thereby overriding those abstract members.

    抽象继承一个抽象 类 时,非抽象 类必须包含所有继承抽象成员实现因此覆盖所有的抽象成员。

    youdao

  • When an abstract class inherits a virtual method from a base class, the abstract class can override the virtual method with an abstract method.

    抽象继承方法时,抽象类可以使用抽象方法重写虚方法。

    youdao

  • If the parent class is an abstract class and if it contains at least one abstract member, then all abstract members will be implemented as non-abstract inheriting classes.

    如果抽象至少包含一个抽象成员所有这些成员作为抽象继承实现

    youdao

  • If the parent class is an abstract class and if it contains at least one abstract member, then all abstract members will be implemented as non-abstract inheriting classes.

    如果抽象至少包含一个抽象成员所有这些成员作为抽象继承实现

    youdao

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

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

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