出典:Wiktionary
metaclass (複数形 metaclasses)
Collection class, Object class かつ 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.出典:Wikipedia
出典:『Wikipedia』 (2011/04/20 10:07 UTC 版)
In object-oriented programming, a metaclass is a class whose instances are classes. Just as an ordinary class defines the behavior of certain objects, a metaclass defines the behavior of certain classes and their instances. Not all object-oriented programming languages support metaclasses. Among those that do, the extent to which metaclasses can override any given aspect of class behavior varies. Each language has its own metaobject protocol, a set of rules that govern how objects, classes, and metaclasses interact.