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

Chapter 7: Attributes and Operations

Figure 7.21: Add Item to Shopping Cart Class diagram with attributes and operations

Summary

In this chapter, we looked at the details of classes, including their attributes and operations. We discussed adding attributes, their names, data types, and default values. We also examined operations, including adding them to the model. We looked at operation details such as the arguments, data types, and return types.

So far, we have looked at classes individually. In the next chapter, we will focus on the relationships between the classes. It is this coordination between classes that lets the application do what it needs to do.

300