| 1 |
\begin{tikzpicture} |
| 2 |
\begin{abstractclass}[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{abstractclass} |
| 9 |
\end{tikzpicture} |