package day12.bark;
public class TestBank {
public static void main(String[] args) {
// 0.完成过开户的操作(卡号,密码,姓名,身份证号,电话号,余额)
// 1.输入卡号输入密码
// 2.卡密的效验,成功展示菜单,失败重新输入
// 3.显示showMenu的菜单,完成业务编号的选择
// 4.完成具体的业务操作,
//程序的开始
Bank bank = new Bank();
bank.inintial();
bank.welcomeMenu();
// bank.login();
// User user =null;
// System.out.println(user.getBalance());
//bank.showMenu();
}
}
package day12.bark;
public class User {
// 卡号、密码、姓名、身份证号、电话号、余额
private String cardNo; // 卡号
private String password; // 密码
private String username; // 姓名
private String identityCard; // 身份证号
private String phone; // 电话
private double balance; // 余额
public User() {
}
public User(String cardNo, String password, String username, String identityCard, String phone, double balance) {
super();
this.cardNo = cardNo;
this.password = password;
this.username = username;
this.identityCard = identityCard;
this.phone = phone;
this.balance = balance;
}
public String getCardNo() {
return cardNo;
}