UML表示法
ClassName
--------------------------------------------
+ variableName : data type // + means a public variable
- variableName : data type // - means a private variable
--------------------------------------------
«constructor» ClassName ( inputName : String )
+ mehodName( attributeName : data type ) // + means a public method
+ mehodName( ) // the method might not need input
+ mehodName( ) : String // the method might return a type such as String, if not written, then it returns void
- mehodName( attributeName : data type ) // - means a private method
No comments:
Post a Comment