不要求您必须拥有这些方法,但是它们非常有用,因为它们不允许用户发出当时没有意义的命令。
It is not required that you should have such methods, but they are useful as they don't allow user to fire commands that do not make sense at that point in time.
如果可以重写类的话,则可以重写它的方法的行为,因此您最安全的选择就是不允许将类子类化。
If the class can be overridden, its methods' behaviors can be overridden as well, so your safest bet is to disallow subclassing.
离开办公室代理要求的受限制的权限级别不允许用户执行任何会对安全性造成影响的方法。
The restricted level of rights required by the Out of Office agent does not allow the user to perform any methods that impact security.
那你怎么看待蔡女士描述的教育方法——比如,不允许她的孩子看电视?
What do you think of the parenting techniques Chua described—for instance, not letting her kids watch TV?
不过,由于受到浏览器的限制,该方法不允许跨域通信。
This approach, however, does not allow cross-domain communication because of restrictions imposed by the browser.
将一些方法声明为Private是一个很好的做法,以便保持代码和逻辑位于类中,同时不允许用户直接调用方法。
Declaring some methods Private is a good way to keep code and logic inside a class while not allowing it to be called directly by a user.
例如,如果不允许通过命令行运行msgs . cgi脚本,那么需要考虑使用另外的方法来调度任务。
For instance, if you prevent msgs.cgi from running from the command line, you will need to think of another solution for the scheduled tasks.
一个设计良好的CherryPy类可能只有少数几个公有的方法暴露给Web客户机,但是它很可能有许多不允许客户机直接访问的内部方法。
A well-designed CherryPy class will probably have only a few public methods exposed to Web clients, but it may have many internal methods a client shouldn't be allowed to access directly.
我们需要采取一些方法避免线程1和线程2出现上述情况;这些方法要保证线程1“在完成对i的操作前不允许其他线程对i操作”。
We need some way to keep thread 1 and thread 2 from doing this; some way for thread 1 to say "no one else can touch I until I'm done with it."
decorator目前并不允许您修改类实例化本身,但是它们可以修改依附于类的方法。
Decorators do not currently let you modify class instantiation per se, but they can massage the methods that are attached to the class.
有些集合不允许在迭代时删除或添加元素,但是调用iterator的remove方法是个安全的做法。
Some collections will let you get away with removing or adding elements to a collection while iterating across it, but calling remove on the Iterator is a safer practice.
这个合约不允许该方法抛出运行时异常(防止因违反泛型类型安全而成为调用代码中的bug)。
That contract does not allow this method to throw a run-time exception (barring violations of generic type safety that qualify as bugs in the calling code).
他现在意识到上帝不允许他逃避其给予的任务,约拿书的提议是停止这场暴风雨的唯一方法。
He realised now that God would not allow him to wriggle out of the job he had been given, and that his plan was the only way to stop the storm.
这种方法不允许你建立你的大脑查找表。
This method does not allow you to build that lookup table in your brain.
不允许其他类型的类别成员,例如方法或事件。
No other kinds of class members such as methods or events are allowed.
说明方法和属性主体中不允许的变更。
Describes what changes are not allowed in method and property bodies.
一个好的经理从来不允许他的下属说“我们尝试过这样那样的方法,但都没有用,所以我也不知道怎样去做了”,因为总有事情可以做到。
A good manager never lets his subordinates get away with saying "we tried this and that, but it did not work so I don't know what to do" because there is ALWAYS something that can be done.
本文提出的插补方法,其插补轨迹具有负偏差特性。并且具有速度快的特点。此方法适用于加工不允许有正偏差的工件。
This paper raises the algorithm of the interpolation with negative deviation and fast speed. This method used to machining permitting no positive deviation.
可能有一些特殊的要求,将不允许使用这种方法,但在大多数情况下,这是不够的。
There can be some special requirements which will not allow to use this approach but in most situation this is enough.
不允许声明具有默认参数的方法参数。
It is not permitted to declare a method parameter with a default argument.
在中断模式的大部分情况中,都不允许您对影响类别公用结构的程序码宣告(例如属性、方法,或类别宣告)进行变更。
In most cases, you are not allowed to make changes to code declarations, such as property, method, or class declarations, that affect the public structure of a class while in Break mode.
制造整台新设备时间上不允许,采用常规的方法又无法修复该设备,导致设备面临报废及装置可能长时间停车。
There is no enough time to manufacture a new condenser, and to adopt the normal method can not repair this equipment, this equipment face a crisis of long time reject.
能够实现允许某个类被继承,但不允许其中的某个方法被覆写么?
It's an abstract class with public abstract methods all of which must be implemented in the inherited classes.
能够实现允许某个类被继承,但不允许其中的某个方法被覆写么?
Can you allow class to be inherited, but prevent the method from being over-ridden?
如果实例调用改方法而实例所在的状态不允许其访问该方法时抛出。
IllegalStateException - Thrown if this method is invoked while the instance is in a state that does not allow access to this method.
也就是说,不允许在方法级注释默认值覆盖类级别的用户指定的值。
That is, not allowing the default-value in the method-level annotation to override the user-specified value at the class-level.
也就是说,不允许在方法级注释默认值覆盖类级别的用户指定的值。
That is, not allowing the default-value in the method-level annotation to override the user-specified value at the class-level.
应用推荐