可以覆盖方法并调用父实现。
You can override a method and invoke the parent implementation.
注释指明hasCode()应该覆盖方法。
The annotation indicates that hasCode() should override a method.
而且如果需要编写测试,通常都是十分简单、覆盖方法的主要功能目标的测试。
More often than not, if they do write tests, they're typically very simple, covering the method's main functional aim.
尽管使用这些方法和新的支持类肯定没问题,但提供构造函数和覆盖方法会有问题。
While it is certainly alright to use the methods and new support classes, providing constructors and overridden methods just feels wrong.
模板覆盖方法的使用几乎是无局限的,它允许你添加、编辑和删除Joomla核心组件输出的内容。
Template overrides are almost limitless. They allow you to add, edit, and remove the components of the Joomla!
因为checked异常是方法签名的一部分,在覆盖方法时,不能增加checked异常,就像不能改变return类型一样。
Because checked exceptions are part of a method's signature, you can't add one to an overriding variant any more than you can change its return type.
为此,我们可以覆盖方法px _ freeze(它在您的数据被存储之前对其进行“设置”)和方法px _ thaw(在提取数据时将调用它)。
For this purpose we can override the method px_freeze, which performs a "setup" on your data prior to it being stored, and the method px_thaw, which will be called when your data is extracted.
对所有类进行专门测试后,还要为所有未覆盖的方法编写测试代码。
Once you partially test all the classes, write tests that cover any uncovered methods.
一个覆盖全部方法的网站已经产生。
如果不覆盖这些方法,根本无法编译此类。
You literally cannot compile this class without overriding these methods.
您可以覆盖这些方法以编写定制的逻辑。
You can override each of these methods to write custom logic.
定制组件必须在验证发生之前覆盖这个方法以提交属性。
A custom component must override this method to commit properties before validation happens.
您可能很想知道怎样才能知道特定组件的大小是被显式地指定的,或通过覆盖度量方法进行度量。
You might wonder how you can know whether a particular component's dimensions have been specified explicitly or have been measured by overriding the measured method.
在特殊化对象中,覆盖创建方法以返回为测试提供的模仿对象。
In the specialization object, override the creation method to return a mock object that accommodates your test.
本节将循序渐进地描述“抽取”和“覆盖”工厂方法重构。
This section offers a step-by-step description of the Extract and Override factory method refactoring.
测量实例3:方法覆盖模块视图。
XmlDictionaryIO可以覆盖其父方法(import和export),也可以选择不提供自己的实现(path )。
XmlDictionaryIO can override its parent methods (import and export ), or it can choose not to provide its own implementation (path ).
重构:抽取和覆盖工厂方法。
特殊化对象:覆盖创建方法以返回模仿对象而不是合作者的目标的子类。
Specialization object: a subclass of the target that overrides the creation method to return a mock instead of a collaborator.
要解决这个问题,必须对JETEmitter类进行扩充,使其覆盖initialize方法,并将其加入您自己的classpath项中。
To work around this problem, you must extend the JETEmitter class to override the initialize method and add in your own classpath entries.
接下来要注意的是该类不再直接覆盖service方法。
Next, notice that the class no longer directly overrides the service method.
如果设置ssoDomain选项,那么该值将覆盖认证方法中设置的值。
If the SSO Domain option is set, this value overrides what is set in the authentication method.
在图1中,被覆盖的方法加上了Hit标签,没有覆盖的则加上Missed标签。
In Figure 1, methods that are covered are labeled Hit, and those not covered are labeled Missed.
如果覆盖此execute方法,则步骤不能自动执行。
If this execute method is overridden, the steps will not be executed automatically.
id:对将覆盖此方法的类的引用。
Id: the reference to the class that will override the method.
这段代码扩展了label类并覆盖updatedisplaylist方法。
This code extends a Label class and overrides the updateDisplayList method.
method :定制painter应该覆盖的方法。
相反,我使用Groovy 元编程直接覆盖getParams方法,使期望的值出现在返回的HashMap 中。
Instead, I use Groovy metaprogramming to override the getParams method directly, forcing the expected values to be present in the HashMap that's returned.
如果这些类中的任何一个的子类需要覆盖默认行为,那么可以通过覆盖这个方法实现。
If a subclass of one of these classes needed to override the default behavior, it could do so by overriding the method.
这允许子类根据需要仅覆盖一些方法。
应用推荐