type use coupling | can be reduced by - ensuring that a class is only type-coupled to classes in a relatively small number of packages
- declaring the type of a variable to be the most general possible class or interface that contains the required operations
| |
cannot be avoided | |
has definition A form of coupling in which several components make use of the same globally-defined data type | |
has disadvantage if the type definition changes, then the users of the type may well have to change. | |
is less problematic than common coupling | |
is similar to common coupling, but instead of data being shared, only data types are shared | |
is a subtopic of 9.2 - Principles Leading to Good Design | |
is a kind of coupling | |
occurs when a class declares a variable as having another class as its type | |
occurs in typed languages such as Java | |
coupling | implies that if you want to reuse one component, you will also have to import all the ones with which it is coupled | |