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属性,这个属性由其实例在计算时使用,但它不保存到数据库中。
This price is not yet complete, however, because the total invoice depends on where the products are produced and the amount of the shipping cost.
然而,由于全部的货品计价取决于产品是在哪里生产的及其运送的费用,所以这一价格并没有计算完全。
应用推荐