Tutorials : UML modeling for information system architecture : Module 3: Create class diagrams : Lesson 3.1: Create a class diagram
  
Lesson 3.1: Create a class diagram
Create a new UML class diagram and add existing classes to the class diagram.
To create a new class diagram
1 Open the Tutorial encyclopedia. (Select File > Open Encyclopedia > Existing. Select your Connection name, then highlight the Tutorial encyclopedia, click OK.)
2 In the UML tab of the Explorer, select the Logical View, Reservation System package, right-click it and select New from the drop-down menu. The Select new type UML dialog appears.
3 Under the Diagrams list, double-click Class to create a new Class diagram.
4 In the New Diagram dialog, name the diagram Hotel Reservation System. Click OK. A dialog will present you with the package that this diagram is contained in. Leave it at Reservation System and click OK.
Note Do not change the Programming Language of Java. You need the language to be Java in order to draw inheritance between classes.
5 Now reuse existing classes in the Sequence diagram that you built in the Reservation System package and in the Tutorial encyclopedia.
6 With the UML tab still selected in the Explorer, in the Reservations System package, expand Definitions > Class.
7 Hold your Control key down and multi-select the classes:Reservation, Reception, Diary, and Customer. Drag them onto your diagram workspace.
8 Arrange the classes as shown in the diagram below. Add space in between the classes to facilitate the drawing of associations between them in the next section.