texmf-dist/doc/latex/pgf-umlcd/demo/implement-interface.tex
raw| 1 | \begin{tikzpicture}%[show background grid] |
| 2 | \begin{interface}{Person}{0,0} |
| 3 | \attribute{firstName : String} |
| 4 | \attribute{lastName : String} |
| 5 | \end{interface} |
| 6 | |
| 7 | \begin{class}{Professor}{-5,-5} |
| 8 | \implement{Person} |
| 9 | \attribute{salary : Dollars} |
| 10 | \end{class} |
| 11 | |
| 12 | \begin{class}{Student}{5,-5} |
| 13 | \implement{Person} |
| 14 | \attribute{major : String} |
| 15 | \end{class} |
| 16 | \end{tikzpicture} |