intermediateOOP Fundamentals for LLD
What is the Law of Demeter (Principle of Least Knowledge)?
Tests whether you know why chaining calls through multiple objects (a.getB().getC().doSomething()) is a design smell.
This is a Pro question
Sign in, then upgrade to Pro or Power to unlock this question and the full Interview Prep bank.
What is the Law of Demeter (Principle of Least Knowledge)?