0
I need help understanding Relationships between objects
I purchased and have read and re-read the section on Relations Between objects.
I need more examples or sources to understand...especially these:
Dependency: Class А can be affected by changes in class B.
Association: Object А knows about object B. Class A depends on B.
Aggregation: Object А knows about object B, and consists of B. Class A depends on B.
Composition: Object А knows about object B, consists of B, and manages B’s life cycle. Class A depends on B.
Implementation: Class А defines methods declared in interface B. Objects A can be treated as B. Class A depends on B.”
Excerpt From
Dive Into Design Patterns
Alexander Shvets
This material may be protected by copyright.
Customer support service by UserEcho