diff options
Diffstat (limited to 'Master/texmf-dist/doc/latex/pgf-umlcd/demo/package.tex')
-rw-r--r-- | Master/texmf-dist/doc/latex/pgf-umlcd/demo/package.tex | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/pgf-umlcd/demo/package.tex b/Master/texmf-dist/doc/latex/pgf-umlcd/demo/package.tex new file mode 100644 index 00000000000..a3196d7dd36 --- /dev/null +++ b/Master/texmf-dist/doc/latex/pgf-umlcd/demo/package.tex @@ -0,0 +1,28 @@ +\begin{tikzpicture} + \begin{package}{Accounts} + \begin{class}[text width=5cm]{BankAccount}{0,0} + \attribute{owner : String} + \attribute{balance : Dollars = 0} + + \operation{deposit(amount : Dollars)} + \operation[0]{withdrawl(amount : Dollars)} + \end{class} + + \begin{class}[text width=7cm]{CheckingAccount}{-5,-5} + \inherit{BankAccount} + \attribute{insufficientFundsFee : Dollars} + + \operation{processCheck ( checkToProcess : Check )} + \operation{withdrawal ( amount : Dollars )} + \end{class} + + \begin{class}[text width=7cm]{SavingsAccount}{5,-5} + \inherit{BankAccount} + \attribute{annualInteresRate : Percentage} + + \operation{depositMonthlyInterest ( )} + \operation{withdrawal ( amount : Dollars )} + \end{class} + \end{package} + +\end{tikzpicture}
\ No newline at end of file |