So you saw in a striking example of where friction helped us to balance, and now I want to discuss an object that is hanging and that can freely swing due to gravity.
这就是著名的靠,摩擦力平衡的例子,现在我想讨论一个,可以在重力作用下,自由摆动的悬挂物体。
That is, we no longer check that the final balance of the test account is correct; we would check that function in the unit test for the Transaction object, not the AtmGui object.
也就是说,我们不再检查测试帐户的最终余额是否正确;我们将在对Transaction对象的单元测试中检查该函数,而不是在对atmgui对象的单元测试中。
In the BankAccount example, the allowed values for an account balance, part of the account object's "state," are integral to the account object, not orthogonal to it.
在BankAccount示例中,帐户余额允许的值,即帐户对象“状态”的一部分,是帐户对象的一个有机部分,而不是与帐户对象的正交。
应用推荐