How do you indicate a generic class or interface in a Class Diagram?
I'm looking for two things really:
Thanks!
Secondly, what uml tools out there support generic classes/interfaces. Use http://staruml.io/. Really nice tool, you can manage all project diagrams in one place. At right top corner, there is object/diagram tree, so you can use same classes(other objects) at different diagrams.
The generic class works with multiple data types. A normal class works with only one kind of data type.
In software engineering, a class diagram in the Unified Modeling Language (UML) is a type of static structure diagram that describes the structure of a system by showing the system's classes, their attributes, operations (or methods), and the relationships among objects.
Usually generics are represented as classifier's template parameter. Here is the example how it looks like in the NetBeans UML Plugin:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With