Method Resolution Order

Noun · Development

Definitions

  1. The linearized sequence in which a language searches a class's inheritance hierarchy to find a method implementation, most famously computed in Python using the C3 linearization algorithm to produce a deterministic, consistent ordering for multiple inheritance.

    In plain English: The order a programming language checks through a chain of parent classes to find the right version of a function to call.

    Example: "The diamond inheritance bug disappeared once I checked the MRO — Python was resolving to the wrong parent's `save()`."

Related Terms