用 UML 表示模板类的正确方法是什么?
问题描述:
在 UML 图中,表示模板类的正确方法是什么?
On a UML diagram, what is the correct way to represent a template class?
答
右上角有一个虚线矩形的普通矩形,表示模板参数.像这样:
Normal rectangle with a dotted rectangle in the top right corner, to represent the template parameter. Something like this:
.......
___________: T :
| :.....:
| |
| ClassName |
| |
|______________|