面向对象软件构造(第2版)-第3章 模块性Modularity[89]

[入库:2006年2月23日] [更新:2007年3月24日]

本文简介:

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:或者,您可以定义一个函数,使用记录中的其它字段来计算余额,例如,字段表达了提款和存款的清单.使用此技术,账户的余额没有被储存(这里并没有余额字段)但是在需要时计算.

 

 


 

本文关键:面向对象软件构造(第2版)-第3章 模块性Modularity
  相关方案
Google
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top