What’s not a violation of the Law of Demeter

The Law of Demeter: "Use only one dot", or "an object should avoid invoking methods of a member object returned by another method." But when would this not be a violation? Buried within a C2.com wiki page is this excellent exchange: Trying to come up with a more simple (non-foobar) example, is this correct? currentPerson.Account.Deposit(500) … Continue reading What’s not a violation of the Law of Demeter