📄 account.java
字号:
package org.hyq.strategy1;
public class Account {
private int VIP_grade=0; //0为非会员,1~3为会员等级;
private String cosName=null; //顾客姓名;
private long cosNum=0; //顾客编号;
private double cosScore=0.0; //顾客会员积分,非会员永远为0.0;
private String nation=null;
public Account(int VIP_grade,String cosName,
long cosNum,double cosScore,String nation){
this.cosName=cosName;
this.cosNum=cosNum;
this.cosScore=cosScore;
this.VIP_grade=VIP_grade;
this.nation=nation;
}
public void setVIP(int VIP_grade){
this.VIP_grade=VIP_grade;
}
public void setCosNum(long cosNum){
this.cosNum=cosNum;
}
public void setCosScore(double cosScore){
this.cosScore=cosScore;
}
public void setCosName(String cosName){
this.cosName=cosName;
}
public void setNation(String nation){
this.nation=nation;
}
public int getVIP(){
return this.VIP_grade;
}
public double getCosScore(){
return this.cosScore;
}
public String getCosName(){
return this.cosName;
}
public String getNation(){
return this.nation;
}
public long getCosNum(){
return this.cosNum;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -