?? account.java
字號:
import java.io.*;
import java.awt.*;
import java.awt.event.*;
class Account {
private String code =null; //信用卡號
private String name =null; //客戶姓名
private String password=null; //客戶密碼
private double money =0.0; //卡里金額
public Account(String code,String name,String password,double money)
{
this.code=code;
this.name=name;
this.password=password;
this.money=money;
}
protected String get_Code()
{
return code;
}
protected String get_Name()
{
return name;
}
protected String get_Password()
{
return password;
}
public double get_Money()
{
return money;
}
/*得到剩余的錢的數(shù)目*/
protected void set_Balance(double mon)
{
money -= mon;
}
}
/****************************************************************/
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -