item.java
来自「网上商城源代码!实现了书店的列表和增加」· Java 代码 · 共 35 行
JAVA
35 行
package bookstore.model.eneity;import java.io.Serializable;public class Item implements Serializable{ private Product product; private int number; private double cost; public Item(){} public Item(Product p,int n,double cost){ this.product=p; this.number=n; this.cost=cost; } public double getCost() { return cost; } public void setCost(double cost) { this.cost = cost; } public int getNumber() { return number; } public void setNumber(int number) { this.number = number; } public Product getProduct() { return product; } public void setProduct(Product product) { this.product = product; } }
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?