Multiple choice technology web technology

In the UML notation, parameterized (generic) classes are represented by

  1. the normal class representation with a dotted arrow pointing at the template parameter classes

  2. the normal class representation but shaded grey.

  3. the normal class representation with a dotted outline and the names of its parameter classes listed on the top right-hand corner.

  4. the normal class representation with a rectangular box in its top left-hand corner.

  5. Its a trick question - parameterized classes can't be specified in the UML notation.

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

Parameterized (generic/template) classes in UML are represented by a normal class box with a dotted outline. The template parameters are listed in a small dashed rectangle in the top right corner. This notation shows that the class is parameterized by types like Class. Shading and arrows are not used for this purpose.