Everything About ___
Live briefing

Everything about Delegation (object-oriented programming)

Evaluation and comparison of objects

In object-oriented programming, delegation refers to evaluating a member of one object in the context of another original object. Delegation can be done explicitly, by passing the responsibilities of the sending object to the receiving object, which can be done in any object-oriented language; or implicitly, by the member lookup rules of the language, which requires language support for the feature. Implicit delegation is the fundamental method for behavior reuse in prototype-based programming, corresponding to inheritance in class-based programming. The best-known languages that support delegation at the language level are Self, which incorporates the notion of delegation through its notion of mutable parent slots that are used upon method lookup on self calls, and JavaScript; see JavaScript delegation. Wikipedia →

đź§­ Start here: a 6-step reading path

  1. Read the overview: Delegation (object-oriented programming)A 5-minute orientation
  2. Pick up a classic book: Software EngineeringThe most-reprinted book on the subject
  3. Go sideways: Forwarding (object-oriented programming)A closely related topic
  4. Go sideways: Composition over inheritanceA closely related topic

đź“– Definitions

No dictionary entry for this exact phrase.

🗂️ The subject at a glance

  1. Overview
  2. Language support for delegation

🏆 Landmark papers (most cited)

📚 Books worth reading

Ranked by number of editions on Open Library, a rough measure of how lasting a book is.

đź”— Related topics