metaclass

M3E1T1A1C3L1A1S1S1

noun

A class that serves as a template for other classes rather than objects.

UncommonScrabble 13

Meanings

nounmetaclass (plural metaclasses)

plural metaclasses

  1. object-oriented programmingA class that serves as a template for other classes rather than objects.

    First, the class can explicitly specify its metaclass by either setting a __metaclass__ class variable (Python 2), or supplying the metaclass keyword argument in the tuple of base classes (Python 3).

    2009, David Beazley, Python Essential Reference, Addison-Wesley Professional, →ISBN, page 139
    1 more example

    That is, all metaclasses (such as Collection class, Object class and Set class) are instances of the class Metaclass. This is because all metaclasses have the same behavior. They define the structure, definition and behavior of a class.

    1997, John Hunt, Smalltalk and Object Orientation: An Introduction, Springer Science & Business Media, →ISBN, page 345

Origin

Translations

Finnish metaluokka
  • metaluokkaobject-oriented programming
French métaclasse
  • métaclasseobject-oriented programming
German Metaklasse
  • Metaklasseobject-oriented programming
Polish metaklasa
  • metaklasaobject-oriented programming

Rhymes & wordplay

Anagrams

Cite this entry
APA

metaclass. (n.d.). In WatkinsX Dictionary. Retrieved November 2, 2026, from https://dictionary.watkinsx.com/word/metaclass

MLA

“metaclass.” WatkinsX Dictionary, https://dictionary.watkinsx.com/word/metaclass. Accessed November 2, 2026.

Chicago

WatkinsX Dictionary, s.v. “metaclass,” accessed November 2, 2026, https://dictionary.watkinsx.com/word/metaclass.

Source: metaclass on Wiktionary, CC BY-SA 4.0.