| 1. | In early Smalltalks, there was only one metaclass called Class.
|
| 2. | They can be overridden by using a different metaclass instead of type.
|
| 3. | In these languages, a class that creates classes is called a metaclass.
|
| 4. | Note the blank in the name of the metaclass.
|
| 5. | Thus, the metaclass of the root class is an instance of itself.
|
| 6. | But the metaclass chain extends further because Object class is the subclass of Class.
|
| 7. | A class is an object, hence it is an instance of a metaclass.
|
| 8. | The changed code can only be accessed from Java by going to the metaclass registry.
|
| 9. | Classes, as objects, have a class, which is known as their metaclass.
|
| 10. | A metaclass describes a common structure of a collection of classes and can implement a frameworks.
|