Midterm Class Attributes and Operations OBS
2020-11-11 21:47:46 0 举报
Class Diagram
作者其他创作
大纲/内容
Member
- memberID: int- name: String- age: int- email: String- phoneNum: String- SSN: String- username: String- password: String- homeAddress: String- account: Account[]
- getMemberID(): int+ getName(): String+ getAge(): int- getUsername(): String- setUsername(username : String): String- setPassword(password : String): String- getSSN(): String- getHomeAddress(): String- getAccountList(): Account[]- getAccount(accountID : int): Account+ createAccount(type : String): Account+ closeAccount(accountNo : String): void
Saving
+ type: String+ amount: double+ transactionHistory: String+ interestRatePerDay: double+ totalInterestThisMonth: double+ availableWithdrawNum: int
+ getAccountType(): String+ getAmount(): double+ getTransactionHistory(): String+ setInterestRatePerDay(interestRate: double): void+ getTotalInterestThisMonth: double + updateAmountAndTransactionHistory(money: double): void+ getAvailableWithdrawNum: int+ renewAvailableWithdrawNum(availableWithdrawNum : int): void
1..*
CD
+ type: String+ amount: double+ transactionHistory: String+ interestRate: double+ startDate: String+ durationInMonth: int + endDate: String+ interest: double
+ getAccountType(): String+ getAmount(): double+ getTransactionHistory(): String+ getInterestRate(): double+ getInterest(): double+ updateAmountAndTransactionHistory(money: double): void+ getStartDate(): String+ getEndDate(): String+ getdurationInMonth():int
1
0..*
Account
# accountID: int# memberID: int+ accountNo: String
# getAccountID(): int+ getAccountNo: String
Employee
- employeeID: int- name: String- age: int- email: String- phoneNum: String- SSN: String- username: String- password: String- homeAddress: String
Customer
Checking
+ type: String+ amount: double+ transactionHistory: String
+ getAccountType(): String+ getAmount(): double+ getTransactionHistory(): String+ updateAmountAndTransactionHistory(money: double): void
0 条评论
下一页