Introduction to OOP
Chapter 25: Reflection and Introspection :
next
previous
audio
real
text
Metaclasses -- Strange Loops
You can get into some interesting places by asking the right questions.
A class is an object.
All objects are instances of a class.
What is the class of a class?
In Java this path circles back on itself very quickly; Class is an intance of itself.
In Smalltalk, the path goes on a bit longer before it circles back on itself.
Intro OOP,
Chapter 25
, Slide 10