- 1). Open a new document in Microsoft Word 2007. Go to the "Insert" tab. Click on the "Text Box" button. Choose "Simple Text Box."
- 2). 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.
- 3). List the attributes of the entity followed by the return type. In our example, type the following attributes:
studentId : Integer
firstName : Char
lastName : Char - 4). 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". - 5). 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.
- 6). 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.
previous post
next post