Welcome to the CSC Q&A.
Get help and give help!
Write great code!
It is our choices... that show what we truly are, far more than our abilities.


+33 votes
asked in CSC285_Fall2018 by (8 points)

1 Answer

+16 votes

Actually, it's okay for UML diagrams to not include lots of things that are in the class. UML does not have to provide a complete description of the code -- just the things that are useful/relevant to the discussion you want to have.

Thus, just because a field or method does not appear in a UML diagram, that doesn't mean that it isn't part of a class.

getters & setters are just one example of things that often aren't very useful to include in UML, because they take up space without adding a lot of value to the discussions you might have with other developers.

answered by (116 points)