uOttawaUniversity of Ottawa - Canadas University
list of dots

Umple User Manual    [Previous]   [Next]   

Loading

W201 Trait Name Syntax

Umple syntactic warning related to identifiers of traits

In Umple, identifiers used for traits, classes and interfaces should start with a capital letter (or "_"), and other elements should start with a lower case letter.

Example

//This example shows a warning in the name of traits because they start with lower cases.
trait color {
	//traits elements
}

trait equality{
	//traits elements
}


      

Load the above code into UmpleOnline

 

Another Example

//This example shows a valid name for the trait
trait Color {
	//traits elements
}
      

Load the above code into UmpleOnline

 

Another Example

//This example shows a valid name of traits
trait Equality {
	//traits elements
}
      

Load the above code into UmpleOnline