Jump to content

Recommended Posts

Posted

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.

Posted

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)

  • 3 months later...
  • 3 months later...
Posted

UML is the Unified Modeling Language. UML defines nine types of diagrams: class (package), object, use case, sequence, collaboration, Statechart, activity, component, and deployment.

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...