H.Principle of Least Knowledge (LoD)

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