本帖最后由 "O_忆_O 于 2013-7-18 13:07 编辑
- private static Logger logger = Logger.getLogger("cn.itcast.bankqueue");
- //用户类型的一个属性
- private CustomerType type = CustomerType.COMMON;
- //窗口序号
- private int number = 1;
- public CustomerType getType() {
- return type;
- }
- public void setType(CustomerType type) {
- this.type = type;
- }
-
- public void setNumber(int number){
- this.number = number;
- }
-
- public void start(){
复制代码 为什么这里不用get方法呢?后面不用get方法怎么获取的啊
|