Software Engineering KB

Home

❯

05 Software Design and Architecture

❯

00 OOP and SOLID Principles

❯

01 Concept

❯

Law of Demeter

Law of Demeter

Feb 10, 20261 min read

  • design-principles
  • law-of-demeter

Law of Demeter

← Back to Other Design Principles

Only talk to your immediate friends. A method should only call methods on its own object, its parameters, objects it creates, and its direct component objects. Minimizes coupling by reducing the chain of object navigation.

Key Properties

  • Minimal Coupling
  • Train Wreck Anti-Pattern

Related

  • Encapsulation (reinforced by LoD)
  • Tell Don’t Ask (related principle)

design-principles law-of-demeter


Graph View

  • Law of Demeter
  • Key Properties
  • Related

Backlinks

  • Other Design Principles
  • Encapsulation (OOP)
  • Tell Don't Ask
  • Minimal Coupling
  • Train Wreck Anti-Pattern

Created with Quartz v4.5.2 © 2026

  • GitHub