Jump to: navigation, search

Difference between revisions of "MetaClasses"


(Created page with "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...")
 
Line 3: Line 3:
 
Among those that do, the extent to which metaclasses can override any given aspect of class behavior varies.  
 
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.
 
Each language has its own metaobject protocol, a set of rules that govern how objects, classes, and metaclasses interact.
 +
 +
[[Namespaces]] are often used to navigate between Metaclasses.

Revision as of 07:58, 13 January 2012

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.

Namespaces are often used to navigate between Metaclasses.