UML Modeling Techniques > Class modeling > Creating class modeling items > Creating a class
  
Creating a class
You can create a Class through a Class Diagram, Composite Structure Diagram or a Modeler pane.
To create a class through a class diagram:
1. On the Class Diagram toolbar, click the Class button, and then click on the diagram in free space or within a Package
If you click within a Package on the diagram, the Class is created as a child item of that Package.
2. Type the name of the Class, and then press the Enter key.
To create a class through a composite structure diagram:
1. On the Composite Structure Diagram toolbar, click the Class button, and then click on the diagram in free space.
2. Type the name of the Class, and then press the Enter key.
To create a class through a Modeler pane:
1. In a Modeler pane, locate the item that is to own the Class, that is, a Package, Class, Interface, Signal or the Model.
2. Right-click the item, Point to New, and then click Class.
3. Type the name of the Class, and then press the Enter key.