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
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 
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With