abstract class
abstract class 片语
片语
Hybrid Abstract Base Class混合型抽象基类
abstract base class抽象基底类别
abstract class Vehicle定义汽车类
Abstract Conceptual Class抽象概念类
abstract t class抽象类
abstract function class抽象函数类
universal abstract consisency class广义抽象协调类
Abstract Strategy Class抽象策略类
universal abstract consistency class广义抽象协调类
abstract class 例句
英汉例句
in this case, you can modify just the abstract class and the code will compile.
在这种情况下,您仅需修改抽象类,代码将完成编译。
because this specification includes a behavioral protocol, we model it using an abstract class that defines the roles (properties) involved in the service protocol.
由于该规范包括行为协议,所以使用一个对服务协议中涉及到的角色(属性)进行定义的抽象类来进行建模。
these are the respective implementations of each abstract class and interface in the message queue framework interface package.
它们分别是消息队列框架接口包中每个抽象类和接口的实现。
i could just add default implementations to the abstract class as shown in figure 5 .
像代码5 这样,我可以仅仅向抽象类中添加一些默认的实现。
in listing 6, i take the duplicated code in listing 4 and reduce the duplication by using the pull up method refactoring — extracting behavior from a larger method into an abstract class method
在清单6 中,我用了 清单4中的重复代码,使用了pullupmethod重构来降低重复度 —将行为从较大方法提取到一个抽象类方法中
this abstract class implements the cachablecommand interface.
这个抽象类实现了cachablecommand接口。
in this case, we use an abstract class to define the service interface and operations of the exposed capabilities, as shown in figure 3.
在这种情况下,我们使用一个抽象的类,来定义服务接口以及预期功能的操作,如图3所示。
an abstract class that represents the location where index files are stored.
表示索引文件存储位置的抽象类。
we can capture this protocol using an abstract class that specifies the invoicer and orderer roles, their responsibilities, and the protocol (conversation or rules) for how they interact.
我们能够通过使用一个指定发货方和订货方角色、它们的职责、以及它们之间如何交互的协议(会话或者规则)的抽象类来捕获这个协议。
the same could have been accomplished by adding a special abstract class with empty callbacks.
通过添加带有空回调的特定抽象类同样可以完成该操作。
a child class that extends an abstract class must implement all abstract methods in its parent or itself be declared abstract.
继承抽象类的子类必须实现在其父类或自身中声明为抽象的所有抽象方法。
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.
同时提供接口和抽象类是多余的,但我发现这样很方便:在大多数情况下,我只需要抽象类,但接口支持多继承性。
an abstract class that our action classes extend has also been created, to hold common code needed for all our action class implementations.
操作类继承的抽象类也已被创建以保存所有的操作类实现所需的共同代码。
an abstract class is good as well.
抽象类的方式也很好。
an anonymous class is a kind of syntactic shorthand that lets you instantiate a class implementing an abstract class or interface where you need it, without having to explicitly give it a class name.
匿名类是一种语法速写标记,使您能够在需要实现某个抽象类或者接口的地方创建一个类的实例,而不需要显式提供类的名称。
suppose you have an abstract class vehicle, defined as follows in listing 5.
假设您有一个名为vehicle 的抽象类,其定义如清单5所示。
notice that an abstract class is denoted by italicized text, as are abstract methods.
注意,抽象类和抽象方法用斜体表示。
you can modify an existing class, pass it as a parameter, and take advantage of the api without requiring the base api to declare an abstract class or interface.
您可以修改已有类,将它作为参数传递,并利用api,而不需要基础api声明一个抽象类或接口。
in fact, an abstract class gives you more flexibility when it comes to evolution.
实际上,抽象类在具体实现时提供了更好的灵活性。
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.
尽管并不是总能在抽象类中定义接口,但是在编程过程中总是免不了要考虑下一个抽象类够不够呢。
in this case, we use an abstract class to define the service specification, as shown in figure 5.
在这种情况下,我们使用一个抽象类来定义服务规范,如图5所示。
as always there is a trade-off, an interface gives you freedom with regard to the base class, an abstract class gives you the freedom to add new methods later.
在编程实践中总是存在一定的权衡,接口在和基类有关的方面提供一定的自由度,而同时抽象类运行你稍后添加新的方法。
to implement this, you extend this abstract class and supply code to create your database in its oncreate method.
要完成这一操作,您需要扩展这个抽象类并提供代码通过使用oncreate方法创建您的数据库。
相关热词
- abstract cauchy problem中文,abstract cauchy problem的意思,abstract cauchy problem翻译及用法
- abstract base class中文,abstract base class的意思,abstract base class翻译及用法
- abstract away from中文,abstract away from的意思,abstract away from翻译及用法
- abstract art中文,abstract art的意思,abstract art翻译及用法
- abstract algebra variety中文,abstract algebra variety的意思,abstract algebra variety翻译及用法
- abstract algebra中文,abstract algebra的意思,abstract algebra翻译及用法
- abstract中文,abstract的意思,abstract翻译及用法
- abstinent syndrome中文,abstinent syndrome的意思,abstinent syndrome翻译及用法
- abstinent symptoms中文,abstinent symptoms的意思,abstinent symptoms翻译及用法
- abstinent中文,abstinent的意思,abstinent翻译及用法
- abstract data type中文,abstract data type的意思,abstract data type翻译及用法
- abstracted中文,abstracted的意思,abstracted翻译及用法
- abstracted information中文,abstracted information的意思,abstracted information翻译及用法
- abstractedly中文,abstractedly的意思,abstractedly翻译及用法
- abstract expressionism中文,abstract expressionism的意思,abstract expressionism翻译及用法
- Abstract Expressionist中文,Abstract Expressionist的意思,Abstract Expressionist翻译及用法
- abstract factory中文,abstract factory的意思,abstract factory翻译及用法
- abstract factory pattern中文,abstract factory pattern的意思,abstract factory pattern翻译及用法
- abstract idea中文,abstract idea的意思,abstract idea翻译及用法
- abstract ideas中文,abstract ideas的意思,abstract ideas翻译及用法
- 上一篇: abstract cauchy problem
- 下一篇: abstract data type