summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/pgf-umlcd/demo/implement-interface.tex
blob: b8b36a502aa6b109e10c2e22ddcb88ac50e42d72 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
\begin{tikzpicture}%[show background grid]
  \begin{interface}{Person}{0,0}
    \attribute{firstName : String}
    \attribute{lastName : String}
  \end{interface}

  \begin{class}{Professor}{-5,-5}
    \implement{Person}
    \attribute{salary : Dollars}
  \end{class}

  \begin{class}{Student}{5,-5}
    \implement{Person}
    \attribute{major : String}
  \end{class}
\end{tikzpicture}