2.2.1 How to Represent Object Returns in a Class Diagram

Representing object returns in a diagram is identical to representing primitive types in a class diagram. The only difference is that we will use our own custom types.


For example, if we have a method: public Food MakeFood(){ } it would be represented on a class diagram as...

...by inserting the custom type/class after the parenthesis of the method.