文件名称:bank
- 所属分类:
- JSP源码/Java
- 资源属性:
- [Java] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 1kb
- 下载次数:
- 0次
- 提 供 者:
- 王**
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
写一个父类 账户(Account)(属性:id,password,name,personId,email,余额balance;方法:存款deposit,取款withdraw为一空方法)
写一个子类 储蓄账户(SavingAccount,覆盖父类的取款方法)
写一个子类 信用账户 (CreditAccount,属性:行用额度ceiling,覆盖父类的取款方法)
写一个银行类Bank作测试,属性:账户数组,账户数量,方法:开户register,登录login,存款deposit,取款withdraw,设置透支额度setCeiling,
统计所有账户余额总和getAllBalance,统计所有信用帐户透支额度的总和getAllCeiling,工具方法:按id查询账户getAccountById,写出测试主方法测试各个功能。
-Write a parent account (Account) (attributes: id, password, name, personId, email, balance balance method: deposit deposit, withdrawal withdraw as an empty method) to write a subclass of savings account (SavingAccount, override the parent' s withdrawal method ) write a subclass of credit accounts (CreditAccount, attribute: credit line with the ceiling, covering the withdrawal method of the parent class) to write a test bank Bank for the property: an array of account, account number, method: account register, login login, savings deposit , ATM withdraw, set the overdraft limit setCeiling, statistical sum of all account balances getAllBalance, overdraft credit accounts statistics for all the sum of getAllCeiling, tool method: query by id account getAccountById, write a test main method to test various functions.
写一个子类 储蓄账户(SavingAccount,覆盖父类的取款方法)
写一个子类 信用账户 (CreditAccount,属性:行用额度ceiling,覆盖父类的取款方法)
写一个银行类Bank作测试,属性:账户数组,账户数量,方法:开户register,登录login,存款deposit,取款withdraw,设置透支额度setCeiling,
统计所有账户余额总和getAllBalance,统计所有信用帐户透支额度的总和getAllCeiling,工具方法:按id查询账户getAccountById,写出测试主方法测试各个功能。
-Write a parent account (Account) (attributes: id, password, name, personId, email, balance balance method: deposit deposit, withdrawal withdraw as an empty method) to write a subclass of savings account (SavingAccount, override the parent' s withdrawal method ) write a subclass of credit accounts (CreditAccount, attribute: credit line with the ceiling, covering the withdrawal method of the parent class) to write a test bank Bank for the property: an array of account, account number, method: account register, login login, savings deposit , ATM withdraw, set the overdraft limit setCeiling, statistical sum of all account balances getAllBalance, overdraft credit accounts statistics for all the sum of getAllCeiling, tool method: query by id account getAccountById, write a test main method to test various functions.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
bank.java