1.5.1 How to Represent Returns in a Class Diagram

Whenever there is a return type in a method it needs to be represented in a class diagram.


For example, the GetNewPrice method in the Food class returns a type of decimal.

To represent this in a class diagram, add a colon and the type of the return to the end of the method.