import java.io.*;
/*该类为实现客户信息及部分功能*/
public 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;
}
public static void main(String[] args) throws Exception {
ATM atm = new ATM();
atm.Welcome();
atm.Load_Sys();
atm.Exit_Sys();
}
protected String get_Code() {
return code;
}
protected String get_Name() {
return name;
}
protected String get_Password() {
return password;
}
public double get_Money() {
return money;
}
/* 得到剩余的钱的数目 */
protected void set_Balance(double mon) {
money -= mon;
}
}
/** ********实现具体取款机功能******** */
class ATM {
Account act;
// private String name;
// private String pwd;
public ATM() {
act = new Account("317337581", "Devil", "123456", 500000);
}