summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/pgf-umlcd/demo/object-include-methods.tex
blob: 69d66da97f97db024d6aba2bbb28cd21ae962900 (plain)
1
2
3
4
5
6
7
8
9
10
\begin{tikzpicture}
  \begin{object}[text width=6cm]{Thomas' account}{0,0}
    \instanceOf{BankAccount}
    \attribute{owner = Thomas}
    \attribute{balance = 100}

    \operation{deposit(amount : Dollars)}
    \operation[0]{withdrawl(amount : Dollars)}
  \end{object}
\end{tikzpicture}