• (The class invariant above was effectively a field-invariant specification!)

    (上面的类不变条件实际上就是一个字段不变条件的规范!)

    youdao

  • A class invariant must hold before and after all method calls (once the object is constructed).

    类在方法调用之前和之后必须保持不变(一旦对象已经构建)。

    youdao

  • But more fundamentally, a class invariant is a way to characterize the fundamental consistency and integrity properties of the class and its instances.

    但从根本上讲,类不变式是一种刻画类和类实例的基本的一致性和完整性的方法。

    youdao

  • That means that this property, the class invariant, must be satisfied whenever an instance of the class is created.

    这就意味着无论什么时候创建一个类实例,该属性(或者说类不变式)的一致性都必须得到确保。

    youdao

  • It's as if the class invariant is added to the pre - and post-condition of every single exported routine of the class.

    如此看来,类不变式好像是被附加到了类暴露例程的前置和后置条件上。

    youdao

  • That is to say, assuming the class invariant was satisfied before the routine was called, the routine must ensure that class invariant is again going to be satisfied on exit.

    也就是说,假设类不变式在该例程调用前被满足了,那么例程退出时必须再次确保类不变式得到满足。

    youdao

  • That is to say, assuming the class invariant was satisfied before the routine was called, the routine must ensure that class invariant is again going to be satisfied on exit.

    也就是说,假设类不变式在该例程调用前被满足了,那么例程退出时必须再次确保类不变式得到满足。

    youdao

$firstVoiceSent
- 来自原声例句
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定