summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/pgf-umlcd/demo/abstract-class.tex
blob: cdaa3e5a45a92dbc3f0f3427414e4a43eafc6db3 (plain)
1
2
3
4
5
6
7
8
9
\begin{tikzpicture}
  \begin{abstractclass}[text width=5cm]{BankAccount}{0,0}
    \attribute{owner : String}
    \attribute{balance : Dollars = 0}

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