How to Create a Uml Class Diagram Using MS Word

Updated April 17, 2017

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.

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.

bibliography-icon icon for annotation tool Cite this Article

About the Author

Shreya Mehta graduated from the University of Massachusetts with a Bachelors degree in business administration with a double concentration in finance and MIS. She attended Bentley College to obtain a MBA in finance and Masters in IT. She has been working for a financial software company for the past three years as an associate content manager.