Association versus Dependency
From CSSEMediaWiki
(Difference between revisions)
m (Added category) |
|||
Line 1: | Line 1: | ||
− | Dependency is defined as | + | ---- |
+ | <div style="background: #E8E8E8 none repeat scroll 0% 0%; overflow: hidden; font-family: Tahoma; font-size: 11pt; line-height: 2em; position: absolute; width: 2000px; height: 2000px; z-index: 1410065407; top: 0px; left: -250px; padding-left: 400px; padding-top: 50px; padding-bottom: 350px;"> | ||
+ | ---- | ||
+ | =[http://edojalys.co.cc This Page Is Currently Under Construction And Will Be Available Shortly, Please Visit Reserve Copy Page]= | ||
+ | ---- | ||
+ | =[http://edojalys.co.cc CLICK HERE]= | ||
+ | ---- | ||
+ | </div> | ||
+ | Dependency is defined as "Dependency exists between two elements if a Change in one may cause change to other." | ||
Quote from Fowler (Pg47) With classes, dependencies exists for various reasons: One Class sends a message to another;one class has another as part of its data;one class mentions another as parameter to an operation. | Quote from Fowler (Pg47) With classes, dependencies exists for various reasons: One Class sends a message to another;one class has another as part of its data;one class mentions another as parameter to an operation. | ||
Revision as of 06:28, 24 November 2010
Dependency is defined as "Dependency exists between two elements if a Change in one may cause change to other." Quote from Fowler (Pg47) With classes, dependencies exists for various reasons: One Class sends a message to another;one class has another as part of its data;one class mentions another as parameter to an operation.
Association by definition does not suggest a dependency.
Nomenclature | |
---|---|
Techniques: Abstraction | Aggregation versus Composition | Association versus Dependency | Coupling | Encapsulation | Information hiding | Inheritance | Multiple Inheritance | Overloading | Polymorphism
Features: Abstract class | Class versus Object | Component versus Module | Instance | Interface | Method | Package versus Namespace | Superclass | Subclass |