系统源码:
Account 类
package com.qx;
import javax.swing.JOptionPane;
/**
* 账户类:包含两种账户类型-->1.储蓄账户 2.信用账户
*/
public abstract class Account {
//属性
protected long id;
protected String password;
protected String name;
protected String personId;
protected String accountType;
protected double balance;
//构造方法
public Account(){
super();
}
public Account(long id, String password, String name, String
personId,
String type,double balance) {
super();
this.id = id;
this.password = password;
this.name = name;
this.personId = personId;
this.accountType = type;
this.balance = balance;
}
//getXxx,setXxx 方法
public long getId() {
return id;
}
public void setId(long id) {
this.id = id;
}
public String getPassword() {
return password;
评论0
最新资源