s
This commit is contained in:
1 parent
96aa932d73
commit
45da627b83
5 files changed
No files matched your search
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user