![]() There are no spaces between the words in a class name.įigure 3.2 A sample UML class diagram for a class named Vehicle. For example, class names that follow this naming convention would include Vehicle, PassengerCar, and IncomeStatement. If the class name contains more than one word, each word in the class name is in uppercase. The standard naming convention for class names is to begin the class name with an uppercase letter. The methods of the class tell us whatthe class can do.įigure 3.2 shows a class diagram with the class name Vehicle in the first compartment. (You'll also hear the attributes of a classreferred to as the properties or variables of the class.) Thethird compartment contains class methods. The second compartment containsattributes of the class. Starting at the top of the class diagram, thefirst compartment contains name of the class. The standard UML diagram, or notation, for a class is a rectangle that'sdivided into three compartments. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |