我应该如何在UML中表示静态类? [英] How should I denote static classes in UML?

查看:620
本文介绍了我应该如何在UML中表示静态类?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

因此,我做了一些有关如何表示UML中的静态方法和类的研究。我在这些 两个页面,应该在静态方法下面加上下划线,但是将类显示为静态的正确方法是什么?

So I did some research about how to denote static methods and classes in UML. I found on these two pages that static methods should be denoted by underlining them, but what is the correct way to display a class as being static?

推荐答案

将类标记为 static 是非常底层的信息,通常我们不会在UML图中放置这些信息。 UML 1.0和2.0为设计者/开发人员提供了一些灵活性,使其可以根据您的受众/团队来修改约定。

Marking a class as static is a very low level information, which we don't put in UML diagrams usually. UML 1.0 as well as 2.0 gives some flexibility to designer/developer to modify the convention if it suits to your audience/team.

您可以在 note ,或者使用类似<< static>> (用于接口的东西)之类的东西。

You can put a note to that class, or use something like <<static>>( as used for interface).

这篇关于我应该如何在UML中表示静态类?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆