Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Mastering UML with Rational Rose 2002.pdf
Скачиваний:
137
Добавлен:
02.05.2014
Размер:
9.68 Mб
Скачать

Chapter 6: Classes and Packages

Select New → Class Diagram.

15.

Name the new diagram Main.

16.

Double−click the new diagram to open it.

17.

Drag the CartMgr and ProductMgr classes from the browser to the diagram.

18.

Close the diagram.

The Main Class diagram for the Control package should look like Figure 6.22.

Figure 6.22: Main Class diagram for Control package

Summary

In this chapter, we discussed classes, Class diagrams, and packages. By now, we have greatly improved our view of the system that is being built. By the end of the last chapter, we had created Object Interaction diagrams such as Collaboration diagrams and Sequence diagrams. These illustrate the interactions required for the system to perform its functions. In this chapter, we created Class diagrams to show the static behavior in the system. We also organized the classes into packages in order to better understand the system. Next, we will look in detail at the attributes and operations of the classes.

250