The overridden methods are called to perform various tasks in the Ajax life cycle.
调用覆盖的方法执行ajax生命周期中的各种任务。
While it is certainly alright to use the methods and new support classes, providing constructors and overridden methods just feels wrong.
尽管使用这些方法和新的支持类肯定没问题,但提供构造函数和覆盖方法会有问题。
Also, static methods can cause problems if people extend your classes because they can't be overridden properly.
另外,如果有人扩展类,因为无法正确覆盖这些方法,静态方法可能会引发问题。
With this class as a super class, there are only three methods that should be overridden.
因为该类是一个超类,所以只有三个应该被忽略的方法。
Static methods cannot be overridden but can be hidden if they are not final (Read about Overriding vs Hiding here).
静态方法不能被覆盖,但如果它不是决定性的则可以被隐藏。
If the class can be overridden, its methods' behaviors can be overridden as well, so your safest bet is to disallow subclassing.
如果可以重写类的话,则可以重写它的方法的行为,因此您最安全的选择就是不允许将类子类化。
This can happen easily in cases in which methods are being overridden and the superclass declares the method with generic parameters, or in a system where lots of serialization is going on.
这在好些情况下很容易发生,比如在方法被覆盖而超类使用常规参数声明方法时,还有正在进行许多序列化的系统中也容易发生。
The AbstractContract aspect presents two abstract methods that must be overridden when you implement a concrete contract-checker aspect
AbstractContract方面表示两个抽象方法,在实现具体的契约检查器方面时必须实现这两个方法
Here I used a parameter that fits to each one of the overridden and overloaded (simultaneously) methods.
这里我使用了一个参数适合的重写和重载的每一个(同时)的方法。
Using inheritance modifiers enables you to help control whether particular methods are overridden always or never.
使用继承修饰词有助于您控制是否一定会或一定不会覆写特定的方法。
Using version-safe modifiers enables you to help control whether particular methods are overridden or not.
您可以使用版本安全修饰词来控制特定的方法是否会被覆写。
In some situations, you may need to ensure that base-class methods are not overridden.
有些情况下您可能需要确保基底类别方法没有被覆写。
On the other hand, you may want to require your class to have certain methods overridden.
另一方面,您可能需要覆写类别中的某些方法。
Methods of the base class can be overridden by declaring a new method with the same signature as the new class method.
基类的方法可以通过声明与新的类方法具有相同签名的新方法来进行重写。
I found it seems useful to separate abstract method into two methods, one for public interface, the other to be overridden by subclasses.
我发现似乎有用的抽象方法分离到两个方法,一个公共接口,另一个是被子类覆盖。
I found it seems useful to separate abstract method into two methods, one for public interface, the other to be overridden by subclasses.
我发现似乎有用的抽象方法分离到两个方法,一个公共接口,另一个是被子类覆盖。
应用推荐