Understanding Law of Demeter When studying object-oriented programming and good practices, Law of Demeter is one of the rules that you usually learn.