lynnt Posted November 19, 2011 Report Share Posted November 19, 2011 Good morning - I have a question about UML Diagrams. Let's assume that we have a class called Step. One of Step's properties is stepNo. In a UML Class Diagram, we could use the following to indicate the types that stepNo's getter and setter methods are expected to return. +getStepNo:String +setStepNo:void In a UML Class Diagram, we could use the following to indicate the types that stepNo's getter and setter methods expect to receive as input parameters. +getStepNo() +setStepNo(stepNo:String) For each method, how would we indicate both? In other words, how do we represent both the parameters a method expects to receive and those it expects to return? Thank you. Quote Link to comment Share on other sites More sharing options...
falkencreative Posted November 19, 2011 Report Share Posted November 19, 2011 I'm not sure if this is something I can personally help with, since I'm not familiar with UML... You can't use a comment to indicate the output though? I would assume you can't do something like this? +getStepNo:String() +setStepNo:void(stepNo:String) Quote Link to comment Share on other sites More sharing options...
KalvinMartin Posted February 29, 2012 Report Share Posted February 29, 2012 I think this image representation helps to clear your confusion... Quote Link to comment Share on other sites More sharing options...
croptech Posted June 13, 2012 Report Share Posted June 13, 2012 UML is the Unified Modeling Language. UML defines nine types of diagrams: class (package), object, use case, sequence, collaboration, Statechart, activity, component, and deployment. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.