- Summary
- Is also known as
Law of Demeter (LoD) or Talk Only to your friends
- Class/Object should only access it`s direct members
- Example inted of a.b.c.GetData() not preferred use a.b.GetData() and b.GetData will implement c.GetData()) internally.
- Applicability
- During Class Design
- During coding and implementation
- References
- http://en.wikipedia.org/wiki/Law_of_Demeter
|
|