Method Overriding 双语例句
全部
1·Method overriding works the same, member visibility works the same, and so on.
方法覆盖的工作方式相同,成员可见性的工作方式相同,还有更多相同的地方。
2·Because a mixin's parent may be instantiated with a type parameter, there is no way for the type checker to determine all cases of accidental method overriding.
因为mixin的父类可能用类型参数被实例化,因此类型检查器就不能确定意外方法覆盖的所有情况。
3·When you finally realize that a method has a parameter wrong, and in fact isn't overriding a method from a superclass, much bitterness can result.
当最后认识到方法的参数有错,且该方法实际上没有覆盖超类中的方法时,您可能更感到难受。
4·You were able to change the intent of the disk_space method completely by overriding the method in the MyDiskMonitor class.
通过重写My diskmonitor类中的方法,您能够完全改变disk_space方法的意图。
5·If a subclass of one of these classes needed to override the default behavior, it could do so by overriding the method.
如果这些类中的任何一个的子类需要覆盖默认行为,那么可以通过覆盖这个方法实现。
6·You have to remember which object is overriding which method, and what objects have new functionality attached to them.
你需要记住对象重写了哪个方法,以及为哪些对象添加了新的功能。
7·The factory implementation produced by the wizard offers a convenient shortcut that allows overriding of the basic factory method so a URL can be passed to the factory when the stub is created.
由向导生成的工厂实现提供了一个简化操作,就是允许覆写基本的工厂方法,因此当存根被创建时 URL 就可以被传递到工厂。
8·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.
您可能很想知道怎样才能知道特定组件的大小是被显式地指定的,或通过覆盖度量方法进行度量。
9·It indicates that the annotated method is overriding a method in a superclass.
它指明注释的方法将覆盖超类中的方法。
10·By overriding the writeTo() method, the code converts the DojoTree object into a tree format and writes it in an HTTP Response output stream.
通过重写 writeTo() 方法,代码将 DojoTree 对象转换成一个树格式然后写入一个 HTTP Response 输出流。
