ATM深化(2)
package com.lovo.bean;
import java.util.Scanner;
//用户信息
public class UserInfo {
//账号
private String username;
//密码
private String password;
//余额
private float account;
public UserInfo(){
}
public UserInfo(String username, String password, float account) {
this.username = username;
this.password = password;
this.account = account;
}
public String getUsername() {
return username;
}
public void setUsername(String username) {
this.username = username;
}
public String getPassword() {
return password;
}
public void setPassword(String password) {
this.password = password;
}
public float getAccount() {
return account;
}
public void setAccount(float account) {
this.account = account;
}
}