| 1 |
\begin{tikzpicture} |
| 2 |
\begin{class}[text width=5cm]{BankAccount}{0,0} |
| 3 |
\attribute{owner : String} |
| 4 |
\attribute{balance : Dollars = 0} |
| 5 |
|
| 6 |
\operation{deposit(amount : Dollars)} |
| 7 |
\operation[0]{withdrawl(amount : Dollars)} |
| 8 |
\end{class} |
| 9 |
|
| 10 |
\begin{class}[text width=7cm]{CheckingAccount}{-5,-5} |
| 11 |
\inherit{BankAccount} |
| 12 |
\attribute{insufficientFundsFee : Dollars} |
| 13 |
|
| 14 |
\operation{processCheck ( checkToProcess : Check )} |
| 15 |
\operation{withdrawal ( amount : Dollars )} |
| 16 |
\end{class} |
| 17 |
|
| 18 |
\begin{class}[text width=7cm]{SavingsAccount}{5,-5} |
| 19 |
\inherit{BankAccount} |
| 20 |
\attribute{annualInteresRate : Percentage} |
| 21 |
|
| 22 |
\operation{depositMonthlyInterest ( )} |
| 23 |
\operation{withdrawal ( amount : Dollars )} |
| 24 |
\end{class} |
| 25 |
|
| 26 |
\end{tikzpicture} |