📄 abstractproduct.java
字号:
package com.shop.entity;
public class AbstractProduct {
private Integer id;
private String pname;
private Double price;
private Integer viewpopluarity;
public AbstractProduct() {
}
public AbstractProduct(Integer id, String pname, Double price) {
super();
this.id = id;
this.pname = pname;
this.price = price;
}
public AbstractProduct(Integer id, String pname, Double price,
Integer viewpopluarity) {
this.id = id;
this.pname = pname;
this.price = price;
this.viewpopluarity = viewpopluarity;
}
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getPname() {
return pname;
}
public void setPname(String pname) {
this.pname = pname;
}
public Double getPrice() {
return price;
}
public void setPrice(Double price) {
this.price = price;
}
public Integer getViewpopluarity() {
return viewpopluarity;
}
public void setViewpopluarity(Integer viewpopluarity) {
this.viewpopluarity = viewpopluarity;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -