W201 Trait Name Syntax
[Previous]  [Next] 
|
User Manual [Previous]  [Next] W201 Trait Name SyntaxUmple syntactic warning related to identifiers of traitsIn 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 case. trait color { //traits elements } trait equality{ //traits elements } // @@@skipcompile no code Load the above code into UmpleOnline Solution to The Above So the Message No Longer Appears//This example shows a valid name for the trait trait Color { //traits elements } Load the above code into UmpleOnline Solution to The Above So the Message No Longer Appears//This example shows a valid name of traits trait Equality { //traits elements } Load the above code into UmpleOnline |