Overriding methods in a parent class is not limited to the constructor.
父类中的重写方法不仅局限于构造函数。
Notice that Trip doesn't extend a parent class or implement a magic interface.
注意,Trip并没有扩展某个父类或者实现某个接口。
If you don't extend a parent class, the default parent is AnyRef, a direct child class of Any.
如果你不继承任何父类,默认的父亲是AnyRef, Any的一个直接子类。
A parent class to extend function from (plus any "mix-in" classes to simulate multiple inheritance).
用于扩展函数的父类(以及模拟多个继承的“混合”类)。
You can access parent entity's attributes the same as you would the properties of a parent class.
您可以像父类的属性一样访问父实体的属性。
Although a RuntimeException, this is a parent class which can be caught by clients of the library calls.
虽然CalendricalExcpetion是一个RuntimeException,但客户端的库调用都可以捕获这个父类。
Although providing a default behavior in a parent class is perfectly legal, it is probably not the neatest way of doing things.
虽然在父类中提供默认行为是完全合法的,但这可能不是最巧妙的方法。
Each class loader also keeps a reference to a parent class loader, defining a tree of class loaders with the bootstrap loader at the root.
每个类装入器还保留对父类装入器的引用,这样就定义了类装入器树,树根为引导程序装入器。
New behaviour: an anonymous inherited call is guaranteed to always call through to the method in a parent class that was overridden by the current one.
新行为:一个匿名继承呼叫保证总是调用覆盖当前的父类中的方法。
Old behaviour: an anonymous inherited call could call through to any method in a parent class that accepted arguments compatible to the parameters of the current method.
原先的行为:一个匿名继承调用可以通过调用父类中的任何方法接受参数兼容当前方法的参数。
Every class loader has a parent class loader, which delegates the searching and loading of a class to its parent (parent-first delegation) before it attempts to load the class itself.
每个类加载器有一个父类加载器,在尝试加载类本身时,先将类搜索和类加载委托给它的父加载器,即父加载器优先(parent-first)委托。
You might add a check in the metaclass code to see if the attributes were already set in a parent class, but this adds plumbing and it does not give real control on a per-class basis.
也许会在元类代码中添加一个检查,以查看是否在父类中设置了这些属性,但是这样会增加负担,并且不会控制所有的类。
If it is not a static class, you first need to declare the name of the field that will hold the reference to the parent class of the nested class before you get to the preview box.
如果它不是一个静态类,那么需要首先声明保存有对此嵌套类的父类的引用的那个字段的名称,之后才能看到这个预览框。
Test developers created generic methods to get all objects of a particular class or to get just one object at a given index under a specific parent object.
测试开发人员创建一个通用的方法来获取一个特定类的所有对象,或者获取一个具体父对象下给定索引号的一个对象。
Instead, it has a set of class loaders that are unrelated except that they have the same parent (usually the system class loader).
相反,它有一组类装入器,彼此互不相关,但是有共同的双亲(通常是系统类装入器)。
This means that a class can directly extend only one parent (though, of course, it may indirectly extend many ancestors).
这意味着,类只可以继承一个父类(虽然它可能间接地继承许多祖先)。
Optimistic concurrency is implemented by assigning a datetime field to each parent class being CRUDed.
开放式并发通过给每个被“凝结”的父类分配一个datetime字段来实现。
Indexing for space querying is controlled from the parent class using a new set of annotations.
空间查询的索引利用一组新的注解通过父类控制。
In line 14, a test case must have a single string parameter constructor that passes the argument to its parent class (TestCase) for the purpose of displaying the test case name in a log.
在第十四行中,为了在日志中显示这个测试用例的名称,一个测试用例必须有一个可以将自变量传递到它的父类(TestCase)的专门的串参数构造器。
Figure 12 is a UML class diagram of the AcronymListEditor class depicting its relationship to the Eclipse parent classes as well as a validator class that can validate input.
图12是AcronymListEditor类的一个UM l类图,描绘了该类与Eclipse父类以及一个可以验证输入的检验器类之间的关系。
The StringHelper Category is a normal class - it doesn't need to extend a special parent class or implement a special interface.
StringHelper Category是一个普通类—它不需要扩展特定的父类或实现特殊的接口。
This method accepts four arguments: a property, a property value, a class, and a parent test object.
该方法接受4个参数:属性、属性值、类和父测试对象。
That suggests that this method shouldn't be in this class, so I'm going to refactor it upward to a BoundaryBase class, which ACTS as the parent of the PartDb class.
这说明这个方法不应该放在这个类中,所以我要把它重构到partdb类的父类BoundaryBase中。
The primary constructor in a derived class must invoke one of the parent class constructors, either the primary constructor or an auxiliary constructor.
子类的主构造函数必须调用父类的一个构造函数,无论是主构造函数或者是辅助构造函数。
By default, when you create a subclass, its constructor merely calls the constructor of its parent class.
默认情况下,当您创建一个子类时,它的构造函数只调用其父类的构造函数。
A child class that extends an abstract class must implement all abstract methods in its parent or itself be declared abstract.
继承抽象类的子类必须实现在其父类或自身中声明为抽象的所有抽象方法。
There are a few user space solutions to this problem, such as creating a destructor for the parent class that will release the child object directly.
有一些用户空间解决方案可以解决这个问题。例如为父类创建一个解构函数将直接释放子对象。
The school's principal, Catherine o 'neill, wrote: "Dear parent, from time to time we will request your daughter to bring in a toilet roll to her class teacher."
学校校长凯瑟琳·奥内尔写道:“亲爱的家长,今后我校将会时常要求您的女儿携带卫生纸卷交给其班主任。”
A UML operation representing a constructor is given the same name as its parent class or structure name.
表示构造方法的UML操作有和其母体类或结构名相同的名字。
Because the parent class loader is always given the opportunity to load a class first, the class is loaded by the class loader nearest the root.
因为父类类装入器总是先得到装入类的机会,所以类装入器装入的类最靠近根。
应用推荐