PowerDesigner software creates a new model.
li>
Open PowerDesigner software, select menu file->create new model, or click Keyboard ctrl+N
The Create New Model window pops up, and the model type is Object- Oriented Model, select Class Diagram in the diagram, enter the model name, such as ObjectOrientedModel_1, select the object language as Java, and click OK
< /li>
PowerDesigner A model project named ObjectOrientedModel_1 will be created, and the operable component symbols will be listed in the Palette panel. For class diagrams, Class (class), Interface (interface) and some relational components are mainly used.
< /div>
Click the Class icon in the Palette toolbar, and click in the work area to create a class. Click the arrow (pointer) in the Palette toolbar and double-click the graphic symbol of the class diagram to open the Class Properties window.
You can set the class in the General and Detail tabs in the class properties window The basic attributes, class attributes, class methods, such as motor vehicle class
Then click the Class icon in the Palette toolbar, click in the work area to create another class, and set the class name, Class attributes, class methods, such as car class