Association vs Dependency
From: ShriKant Vashishtha (shrikantv_at_delhi.tcs.co.in)
Date: 12/31/03
- Next message: Isaac Gouy: "Re: Modularity Again (Was: Real world musings)"
- Previous message: Paulo Moura: "ANN: Logtalk 2.15.5 now available for download"
- Next in thread: Boris: "Re: Association vs Dependency"
- Reply: Boris: "Re: Association vs Dependency"
- Reply: Robert C. Martin: "Re: Association vs Dependency"
- Reply: H. S. Lahman: "Re: Association vs Dependency"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 30 Dec 2003 16:48:03 -0800
Hi All,
I am slightly confused in finding the difference between association
and dependency.
For me, whenever the variable is intialized at a local scope or passed
as a parameter in a method, its denoted as dependency. However, for
association, I believe, the object needs to be on global scope (as an
instance variable). However, I rarely use any object at a global
scope, unless I know that it is used for maintaining the state of
class or need to be used across different methods. So most of the
time, I end up with dependency .
Am I missing something over here.
Thanks
-ShriKant
- Next message: Isaac Gouy: "Re: Modularity Again (Was: Real world musings)"
- Previous message: Paulo Moura: "ANN: Logtalk 2.15.5 now available for download"
- Next in thread: Boris: "Re: Association vs Dependency"
- Reply: Boris: "Re: Association vs Dependency"
- Reply: Robert C. Martin: "Re: Association vs Dependency"
- Reply: H. S. Lahman: "Re: Association vs Dependency"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|