?? shopcommodity.java
字號(hào):
package NetCommodityOrder.ejbtools;
import java.io.Serializable;
//- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
//這是一個(gè)輔助的類文件,用于建立商品信息的類對(duì)象。
//- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
public class ShopCommodity implements Serializable
{
int unitprice = -1;
String commodityname = null;
String commodityid = null;
//- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
//建立一個(gè)包含三個(gè)參數(shù)的ShopCommodity對(duì)象構(gòu)造器
//- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
public ShopCommodity(String commodityid,String commodityname,int unitprice)
{
this.commodityname = commodityname;
this.commodityid = commodityid;
this.unitprice = unitprice;
}
//- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
//定義一些屬性方法
//- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
public String getCommodityid()
{
return commodityid;
}
public int getUnitprice()
{
return unitprice;
}
public String getCommodityname()
{
return commodityname;
}
}
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -