cart.java
来自「这个网上商城系统项目是我之前发过类似的一个大的整合」· Java 代码 · 共 60 行
JAVA
60 行
package javabean;
public class Cart {
private int bookid;
private String name;
private float price;
private float saleprice;
private int number;
private float total;
public Cart() {
}
public Cart(int bookid, String name, float price, float saleprice, int number, float total) {
this.bookid = bookid;
this.name = name;
this.price = price;
this.saleprice = saleprice;
this.number = number;
this.total = total;
}
public int getBookid() {
return bookid;
}
public void setBookid(int bookid) {
this.bookid = bookid;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public int getNumber() {
return number;
}
public void setNumber(int number) {
this.number = number;
}
public float getPrice() {
return price;
}
public void setPrice(float price) {
this.price = price;
}
public float getSaleprice() {
return saleprice;
}
public void setSaleprice(float saleprice) {
this.saleprice = saleprice;
}
public float getTotal() {
return total;
}
public void setTotal(float total) {
this.total = total;
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?