productbean.java
来自「java编写的网络购物简洁版」· Java 代码 · 共 112 行
JAVA
112 行
package shop;
public class productBean {
private int productID;
private int breedID;
private String productName;
private String factory;
private float price;
private int amout;
private String remark;
public productBean()
{
}
public productBean(int productID,int breedID,String productName,String factory,float price,int amout,String remark)
{
this.breedID = breedID;
this.factory = factory;
this.price = price;
this.productID = productID;
this.productName = productName;
this.amout = amout;
this.remark = remark;
}
/**
* @return 返回 breedID。
*/
public int getBreedID() {
return breedID;
}
/**
* @param breedID 要设置的 breedID。
*/
public void setBreedID(int breedID) {
this.breedID = breedID;
}
/**
* @return 返回 factory。
*/
public String getFactory() {
return factory;
}
/**
* @param factory 要设置的 factory。
*/
public void setFactory(String factory) {
this.factory = factory;
}
/**
* @return 返回 price。
*/
public float getPrice() {
return price;
}
/**
* @param price 要设置的 price。
*/
public void setPrice(float price) {
this.price = price;
}
/**
* @return 返回 productID。
*/
public int getProductID() {
return productID;
}
/**
* @param productID 要设置的 productID。
*/
public void setProductID(int productID) {
this.productID = productID;
}
/**
* @return 返回 productName。
*/
public String getProductName() {
return productName;
}
/**
* @param productName 要设置的 productName。
*/
public void setProductName(String productName) {
this.productName = productName;
}
/**
* @return 返回 amout。
*/
public int getAmout() {
return amout;
}
/**
* @param amout 要设置的 amout。
*/
public void setAmout(int amout) {
this.amout = amout;
}
/**
* @return 返回 remark。
*/
public String getRemark() {
return remark;
}
/**
* @param remark 要设置的 remark。
*/
public void setRemark(String remark) {
this.remark = remark;
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?