Next: Programmed-in relationship
Up: Specify Dependencies
Previous: Containment relationship
There is a number of use relationships represented in C++. Each of them
introduce some dependency between the client code (which uses the other)
and the code which was used.
- Using a name. This is the smallest dependency, not even necessery
to use the declaration.
- Calling a member function
- Reading a member
- Writing a member
- Creating an object
- Taking the size of an object. This needs to know the declaration but
doesn't depend on the constructor.
It is always a good idea to minimalize the dependencies between the different
parts of the code.
Porkoláb Zoltán
2001-09-03