A dependency is a semantic relationship between two objects, in which a change to one object (the influent object) may affect the semantics of the other object (the dependent object).
A dependency can be created in the following diagrams:
The dependency relationship indicates that one object in a diagram uses the services or facilities of another object. You can also define dependencies between a package and a modeling element.
In a class diagram, you can create a dependency between:
For example:
In an object diagram, you can create a dependency between two objects as follows:
In a use case diagram, you can create a dependency between:
Buying a computer from a web site involves the activity of finding the product page within the seller's web site: