uOttawaUniversity of Ottawa - Canadas University
list of dots

Umple User Manual    [Previous]   [Next]   

Loading

Umple Comments

Comments provide a mechanism to document your work to provide some insight into why you are performing a certain action, as opposed to simply showing how.

Comments should be used just like in any programming language.

Comments immediately before class definitions, attribute definitions, association definitions and method definitions, as well as comments embedded in methods will be output into the generated code. Comments before definitions in Java will use Javadoc style; this means that when you generate JavaDoc output the API documentation will contain the comments. You are encouraged to create your Java comments using Javadoc tags.

Comments can be either inlineComments, or multilineComments.


Example

// The Umple system is both fun and efficient to development with


      

Load the above code into UmpleOnline

 

Another Example

// The Umple system is both fun and efficient to development with
/* 
  This apple can only be compared to 
  other apples
*/


      

Load the above code into UmpleOnline