For example, an Invoice class may have a grandTotal attribute that is used by its instances for calculation purposes, but that is not saved to the database.
例如,Invoice类会有grandtotal属性,这个属性由其实例在计算时使用,但它不保存到数据库中。
When, for example, a user creates an invoice for a customer without an ID number, most applications reject the entry.
例如,当用户创建一张没有顾客号码的发货单时,多数程序会拒绝输入。
Dialog boxes are also well suited for concentrating information related to a single subject, such as the properties of a domain object-an invoice or a customer, for example.
对话框也非常适合集中于某个主题相关的信息,例如应用程序中一个对象的属性,一张发货单或者一名顾客。
应用推荐