Law of Demeter

专有名词

英文释义

专有名词
  1. A design guideline for developing particularly object-oriented programs that mandates loose coupling between objects.
    — An adaptive program contains only hooks into the class structure and normally does not fully encode the details of the class structure. This idea of not duplicating the class structure is an application of the key idea behind the Law of Demeter.

词源

Named for its origin in the Demeter Project, an adaptive programming and aspect-oriented programming effort, itself named after the Greek goddess Demeter.
0 次浏览 数据来源: Wiktionary