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)?

Next Step

Continue to What is the Proxy pattern? Explain the 3 types: Virtual, Remote, and Protection proxy.← Back to all Design Patterns & LLD questions