[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.modeling.mdt.uml2] Re: Constructors and Parameters
|
Hi PFuriani,
Creating a constructor would be like creating any other Operation from the
UML perspective. If you are modeling a Java class, you would name the
operation the same as the class name etc.
Cheers,
- James.
"PFuriani" <pfuriani@xxxxxxx> wrote in message
news:g7qfoc$8t3$1@xxxxxxxxxxxxxxxxxxxx
> Update: I figured out how to make the parameters, but I am still not sure
> how to make a Constructor for a class. There is no option "New Child" ->
> "Owned Constructor". Can someone please tell me how I can create a
> constructor? Thanks
>
>
>
> "PFuriani" <pfuriani@xxxxxxx> wrote in message
> news:g7q75n$o41$1@xxxxxxxxxxxxxxxxxxxx
>> To create a method (operation) for a class, I right click on the class
>> (in the text editor), and choose the option "New Child" -> "Owned
>> Operation" -> "Operation". Then, in the properties view I can't figure
>> out how to set parameters for the operation. Also, How do I make a
>> constructor for a class? Thanks.
>>
>
>