Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package BankPkg;
- public enum AccountType {
- regular(1, 0.05, -5000, 18, 120), teenage(2, 0.0, 0, 16, 18), business(3,
- 0.02, -20000, 21, 120), student(4, 0.01, 0, 18, 120), soldier(5,
- 0.0, -8000, 18, 21);
- private int prefixIdDigit;
- private double defaultFee;
- private int defaultCredit;
- private int minAge;
- private int maxAge;
- private AccountType(int prefixIdDigit, double defaultFee,
- int defaultCredit, int minAge, int maxAge) {
- this.prefixIdDigit = prefixIdDigit;
- this.defaultFee = defaultFee;
- this.defaultCredit = defaultCredit;
- this.minAge = minAge;
- this.maxAge = maxAge;
- }
- public int getPrefixIdDigit() {
- return this.prefixIdDigit;
- }
- protected void setPrefixIdDigit(int prefixIdDigit) {
- this.prefixIdDigit = prefixIdDigit;
- }
- public double getDefaultFee() {
- return this.defaultFee;
- }
- protected void setDefaultFee(int defaultFee) {
- this.defaultFee = defaultFee;
- }
- public int getDefaultCredit() {
- return this.defaultCredit;
- }
- protected void setDefaultCredit(int defaultCredit) {
- this.defaultCredit = defaultCredit;
- }
- public int getMinAge() {
- return this.minAge;
- }
- protected void setMinAge(int minAge) {
- this.minAge = minAge;
- }
- public int getMaxAge() {
- return this.maxAge;
- }
- protected void setMaxAge(int maxAge) {
- this.maxAge = maxAge;
- }
- };
Add Comment
Please, Sign In to add comment