Including constructors in Class diagrams.
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Andre_Fourie
Posted On:   Thursday, January 13, 2005 03:21 PM

I'm new to UML modelling. I am using Rational Rose to model some class diagrams and want to know how/where you represent the various constructors of a given class.


I know Operations list the methods (public, protected and private) and Atrtibutes the state and other variables of the class but where (if any) can I list the constructors (and their arguments) of the class?

Re: Including constructors in Class diagrams.

Posted By:   sanjeev_sharma  
Posted On:   Monday, February 21, 2005 11:11 AM

UML does not distinguish between constructor and normal method.This is language specific. For UML it is some operation only. So, you need define it only as an operation.

Re: Including constructors in Class diagrams.

Posted By:   Anonymous  
Posted On:   Sunday, February 6, 2005 09:48 AM

The constructors are methods too. If no constructor defined, there is a default constructor without parameters. If you want to define constructors with parameters, you can define them as methods.
About | Sitemap | Contact