constructors/destructors into UML

Sep 15, 2010 at 9:51am
Hello!

Should I put the Constructor/destructor functions into my UML classes diagram?

Thanks
Sep 15, 2010 at 10:05am
closed account (EzwRko23)
It depends on what you are going to document. However, I would not put destructors there, unless they have some business logic (anyway - destructors containing business logic = a very bad idea). I would put constructors there if they are important from the view of the business logic (e.g. they take some parameters you wish to document). If they are just an obvious thing to create an object, I would not document them.


Sep 15, 2010 at 10:06am
ok, thanks. this is what I wanted :)
Topic archived. No new replies allowed.