Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Class diagram operation

Modeling class diagram requires set of classes associated with each others, each class has a set of attributes and operations.

My question is: how and where should i model implementations (bodies) for those operations?

Asking because i have confusion in understanding the application of concepts class, interface, abstract class

like image 573
Andrew Avatar asked Apr 10 '26 11:04

Andrew


1 Answers

I agree that Interface and Abstract are set of "empty" (i.e. without code) Operation. It does not really exist a place for model implementation I mean each tool RSx, Rhapsody, Modelio, etc has its own strategy. It could be model as a UML Comment, an OpaqueBehavior, or an Activity owned by the Operation. UML does not define where and how the code (Operation bodies) should be.

I add a screenshot of Java code modelling using Modelio. As you see a specific UML Comment , named Code is created under the UML operation and the body of this comment are the code of the method Java Hello Word

like image 175
Red Beard Avatar answered Apr 12 '26 00:04

Red Beard



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!