Law of Demeter

ignorance is bliss


Do not refer to a class C in a method m unless C is (the type of)


   1. an instance variable
   2. an argument of m
   3. an object created in m
   4. a global variable
  

Class transformations


slide: The Law of Demeter