Unified Modeling Language (UML) diagrams are used to depict entities, their attributes, and operations. A class diagram represents the structure of each entity and it's relationship with other entities. Each class consists of three sections: name of entity, attributes, and methods. A class diagram can easily be created in Microsoft Word 2007.
- Skill level:
Open a new document in Microsoft Word 2007. Go to the "Insert" tab. Click on the "Text Box" button. Choose "Simple Text Box."
Type the name of the entity, such as "Student". Repeat step 1 and add a text box below the Student text box. Resize the text box using your mouse so that it is aligned with the Student box.
List the attributes of the entity followed by the return type. In our example, type the following attributes: student Id : Integer firstName : Char lastName : Char
Add and align another text box below the attributes box. Type the methods or operations in this box followed by the return type, such as getAverageGrade() : Integer. Create the rest of the entity classes. Examples of other entities include "Course" and "Teacher".
Add association lines between classes to illustrate the relationship between two classes. Go to the "Insert" tab and click on the "Shapes" button. Select a straight line and insert it between the "Students" and "Course" entities.
Add role and multiplicity information. Double click above the line, next to the Student box. Type "0..*" to indicate a student can be enrolled in zero or more courses. Double click below the line and type the role "enrollsIn". Repeat these steps for the remaining relationships.
- 20 of the funniest online reviews ever
- 14 Biggest lies people tell in online dating sites
- Hilarious things Google thinks you're trying to search for