Debian Codegraph @

texmf-dist/doc/latex/pgf-umlcd/demo/package.tex

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