previous |
start |
next
Relationships between Classes
- A class is associated with another if you can
navigate from objects of one class to objects of the other
class.
- Example: You can navigate from a Car
object to the Tire object, so these classes are
associated.
- The association relationship is related to the
dependency relationship. Association is a stronger form of
dependency.
- If a class is associated with another, it also
depends on the other class.
- If a class depends on another, it comes in
contact with objects of the other class in some way, not
necessarily through navigation.
previous |
start |
next