Professional Documents
Culture Documents
Class Diagrams 30 34
Class Diagrams 30 34
Class NAME
Attribute
operation()
Class name
Data members
Instance methods
tariff_1974:TarifSchedule
zone2price = {
{‘1’, .20},
{‘2’, .40},
{‘3’, .60}}
Bottom –
Attribute names and values.
Association (delegation)
Generalization (inheritance)
Realization (interfaces)
Dependency
Exactly one 1
1 Circle
Circle Point
3..* Point
Polygon
Parts can live independently (i.e., Parts exist only as part of the
whole cardinality can be 0..*) whole. When the wall is
destroyed, they are
destroyed
Whole is not solely responsible Whole is responsible and
for the object should create/destroy the
objects
Generalization
Indicates that objects of the specialized class (subclass)
are substitutable for objects of the generalized class
(super-class).
› “is kind of” relationship.
<<creates>> <<modifies>>
AccountingSystem creates
a Receipt object
Reciept Order
Customer 1 * may be
Order
{ total < $50 } canceled
id: long { value > 0 }
Constraint Note
Customer
1 Simple
Class Aggregation
Composition Simple
Generalization Association
Checkout Screen
DVD Movie VHS Movie Video Game