文件名称:Account
- 所属分类:
- JSP源码/Java
- 资源属性:
- [Java] [源码]
- 上传时间:
- 2014-11-23
- 文件大小:
- 1kb
- 下载次数:
- 0次
- 提 供 者:
- 张*
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
设计一个名为Account的类,它包括:一个名为id的int类型私有数据域(默认值为0)一个名为balance的double类型私有账户数据域默认值为0)一个名为annualInterestRate的double类型私有数据域存储当前年利率(默认值为0)。假设所有账户都有相同的利率。
一个名为dateCreated的Date类型私有数据域存储账户的开户日期。
一个能创建默认账户的无参数构造方法。
一个能创建带特定id和初始余额的账户的构造方法。id、balance和annualInterestRate的访问器和修改器。dateCreated的访问器。一个名为getMonthlyInterestRate的方法返回月利率。一个名为withDraw的方法从账户提取特定数额。一个名为deposit的方法向账户存储特定数额。-Design a class named Account, which includes: int type private data field named id (default is 0) a double type double type called private account balance data field default value of 0) are called annualInterestRate private data fields to store the current annual interest rate (default is 0). Assuming that all accounts have the same interest rate.
Opening date of the Date type named dateCreated private data fields to store accounts.
One can create a default account no-argument constructora.
A constructor can create an account with a specific id and the initial balance of. id, balance and annualInterestRate accessors and modifiers. dateCreated accessor. A method called getMonthlyInterestRate monthly rate of return. A method called withDraw extract specific amount the account. A method called to deposit a specific amount of storage accounts.
一个名为dateCreated的Date类型私有数据域存储账户的开户日期。
一个能创建默认账户的无参数构造方法。
一个能创建带特定id和初始余额的账户的构造方法。id、balance和annualInterestRate的访问器和修改器。dateCreated的访问器。一个名为getMonthlyInterestRate的方法返回月利率。一个名为withDraw的方法从账户提取特定数额。一个名为deposit的方法向账户存储特定数额。-Design a class named Account, which includes: int type private data field named id (default is 0) a double type double type called private account balance data field default value of 0) are called annualInterestRate private data fields to store the current annual interest rate (default is 0). Assuming that all accounts have the same interest rate.
Opening date of the Date type named dateCreated private data fields to store accounts.
One can create a default account no-argument constructora.
A constructor can create an account with a specific id and the initial balance of. id, balance and annualInterestRate accessors and modifiers. dateCreated accessor. A method called getMonthlyInterestRate monthly rate of return. A method called withDraw extract specific amount the account. A method called to deposit a specific amount of storage accounts.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Account类\ch8.java
Account类