summaryrefslogtreecommitdiff
path: root/graphics/pgf/contrib/pgf-umlcd/demo/visibility.tex
blob: e5bd6e13186d16dca71bf804ec896d4e28de7c54 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
\begin{tikzpicture}%[show background grid]
    \begin{class}[text width=7cm]{Class}{0,0}
    \attribute{+ Public}
    \attribute{\# Protected}
    \attribute{- Private}
    \attribute{$\sim$ Package}
  \end{class}

  \begin{class}[text width=7cm]{BankAccount}{0,-3}
    \attribute{+ owner : String}
    \attribute{+ balance : Dollars}
    
    \operation{+ deposit( amount : Dollars )}
    \operation{+ withdrawal( amount : Dollars )}
    \operation{\# updateBalance( newBalance : Dollars )}
  \end{class}
\end{tikzpicture}