Debian Codegraph @

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

raw
1 \begin{tikzpicture}%[show background grid]
2 \begin{class}[text width=7cm]{Class}{0,0}
3 \attribute{+ Public}
4 \attribute{\# Protected}
5 \attribute{- Private}
6 \attribute{$\sim$ Package}
7 \end{class}
8
9 \begin{class}[text width=7cm]{BankAccount}{0,-3}
10 \attribute{+ owner : String}
11 \attribute{+ balance : Dollars}
12
13 \operation{+ deposit( amount : Dollars )}
14 \operation{+ withdrawal( amount : Dollars )}
15 \operation{\# updateBalance( newBalance : Dollars )}
16 \end{class}
17 \end{tikzpicture}