---
title: "StarUML Method 构造方法 普通方法帮助说明"
author: "TimerBin"
date: "2018-02-01T10:41:47Z"
tags: []
categories: ["开源软件"]
slug: "staruml-method"
draft: false
lastmod: "2018-02-01T10:33:38Z"
id: 2409929
url: "https://timerbin.iteye.com/blog/2409929"
---

使用StarUML创建类Class，并为Class类添加方法(构造方法/普通方法)：

![](http://dl2.iteye.com/upload/attachment/0128/7663/a9b500bb-e9a2-3981-b1d6-cdcd885fd51a.png)  
 为指定方法添加参数信息：

![](http://dl2.iteye.com/upload/attachment/0128/7665/096aad7f-e931-31dc-8bab-96337bfe45e0.png)  
为指定方法添加返回值：在为方法添加返回值时先为方法再添加一个参数，将参数的direction属性由in修改为return

![](http://dl2.iteye.com/upload/attachment/0128/7669/00c98594-3f1d-3e9c-af90-2ce95a533646.png)  
为接口添加方法与类相同！