This commit is contained in:
xixu-me committed 2024-04-17 20:08:35 +08:00
1 parent 96aa932d73
commit 45da627b83
5 files changed

No files matched your search

+37
View File
@@ -0,0 +1,37 @@
package shopping;
public class Good {
private String strName;
private float fPrice;
private int iCount;
public Good(String strName, float fPrice, int iCount) {
this.strName = strName;
this.fPrice = fPrice;
this.iCount = iCount;
}
public String getName() {
return strName;
}
public float getPrice() {
return fPrice;
}
public int getCount() {
return iCount;
}
public void setName(String strName) {
this.strName = strName;
}
public void setPrice(float fPrice) {
this.fPrice = fPrice;
}
public void setCount(int iCount) {
this.iCount = iCount;
}
}