Should I include getters & setters in class diagram?

Selvin picture Selvin · Mar 9, 2011 · Viewed 22.7k times · Source

I am required to draw a class diagram for my JSF application for a project documentation. So I have lots of classes as managed beans, with many attributes therefore many getters and setters.

When I draw the class diagram should I also include the getters & setters in the diagram or can I simply leave them?

Answer

Jigar Joshi picture Jigar Joshi · Mar 9, 2011

It wouldn't be appropriate to include them. You can just add one line saying accessors methods