用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 |
| |
|______________|