Metaclass

Noun · Development

Definitions

  1. A class whose instances are themselves classes — it defines how classes behave, enabling customization of class creation, attribute access, and inheritance.

    In plain English: A class that creates other classes, letting you control how new classes are built and what rules they follow.

    Example: "If you think you need a metaclass, you probably don't. If you actually need one, good luck explaining it in code review."

Related Terms