A2 • Or you may define a function which computes the balance using other fields of the record, for example fields representing the lists of withdrawals and deposits. With this technique the balance of an account is not stored (there is no balance field) but computed on demand.
A2:或者,您可以定义一个函数,使用记录中的其它字段来计算余额,例如,字段表达了提款和存款的清单.使用此技术,账户的余额没有被储存(这里并没有余额字段)但是在需要时计算.