cartitem.java
来自「该代码是Java数据库高级编程宝典中的重要的代码」· Java 代码 · 共 41 行
JAVA
41 行
package jdbcbook.shopping.bean;
import jdbcbook.shopping.form.Product;
import java.math.BigDecimal;
public class CartItem
{
// 购买的商品
private Product product;
public Product getProduct( )
{
return this.product;
}
public void setProduct( Product product )
{
this.product = product;
}
// 购买的数量
private int quantity;
public int getQuantity( )
{
return this.quantity;
}
public void setQuantity( int quantity )
{
this.quantity = quantity;
}
// 总费用
private BigDecimal totalfee;
public BigDecimal getTotalfee( )
{
return this.totalfee;
}
public void setTotalfee( BigDecimal totalfee )
{
this.totalfee = totalfee;
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?