Search code examples
umlmodeling

UML no fields (state) in class


If my class (interface) has no fields, should I leave white space to make it obvious that there is to state?

With whitespace:
UML with whitespace

No whitespace:
UML without whitespace


Solution

  • I'd use with whitespace. I've seen some examples on the web like this (https://www.ibm.com/developerworks/rational/library/content/RationalEdge/sep04/bell/). In Figure 10, The Person interface has no methods, but the space to put methods is present.