I have quite simple question regarding Class and Sequence diagrams. Do we need to specify methods arguments/return types in aforementioned diagrams? I have tried doing so, and diagrams started to looking overcrowded with information. Classes boxes became huge. I wonder, do fine-grained methods arguments/returns types are mandatory, or they can be omitted if method name clearly states what it's intended to? E.g. searchProduct() method, it doesn't really matters which arguments this method takes and what it returns, IMHO...
Also, should we show generic arguments in Class attributes? E.g., I have a class with argument of type Map<Integer, Renderer>. How to correctly specify it in Class diagram?
Thanks a lot!
I showed them for the important methods and if they are in your sequence diagram then they must be in your class diagram. I didn't show getters and setters or any methods that were outside the scope oif the use cases.
** I have not had my score back yet so this may be wrong but it's basically what it says in Cade's book **
Thanks for reply.
However, my question is not about showing methods, but about showing arguments and return types of methods shown.
Adding them makes Sequence Diagram covered with text and Class Diagram to contain huge class boxes...