However, in cases where the balance is less than the amount, then the sequence enters the break combination fragment and its messages are sent.
然而,在余额比金额更少的情况下,然后序列进入跳转组合碎片,它的消息被传递。
As an example to show how an alternative combination fragment is read, Figure 8 shows the sequence starting at the top, with the bank object getting the check's amount and the account's balance.
图8作为一个变体的组合碎片如何阅读的例子,显示序列从顶部开始,即bank对象获取支票金额和帐户结余。
The second sequence is called when the balance is not greater than or equal to the amount because of the "[else]" guard.
因为“else”约束,当余额不大于或者等于金额时,第二个序列被调用。
应用推荐