product.java
来自「基于JSP的家电连锁超市管理系统 数据库也在文件内」· Java 代码 · 共 75 行
JAVA
75 行
package electric.dbs;
public class Product
{
private int Id;
private String Productname;
private String Productprice;
private String Productform;
private String Productnote;
private String Pic;
private int Status;
public Product()
{
}
//定义get方法
public int getId()
{
return this.Id;
}
public String getProductname()
{
return this.Productname;
}
public String getProductprice()
{
return this.Productprice;
}
public String getProductform()
{
return this.Productform;
}
public String getProductnote()
{
return this.Productnote;
}
public String getPic()
{
return this.Pic;
}
public int getStatus()
{
return this.Status;
}
//定义set方法
public void setId(int Id)
{
this.Id=Id;
}
public void setProductname(String Productname)
{
this.Productname=Productname;
}
public void setProductprice(String Productprice)
{
this.Productprice=Productprice;
}
public void setProductform(String Productform)
{
this.Productform=Productform;
}
public void setProductnote(String Productnote)
{
this.Productnote=Productnote;
}
public void setPic(String Pic)
{
this.Pic=Pic;
}
public void setStatus(int Status)
{
this.Status=Status;
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?