Introduction to OOP Chapter 25: Reflection and Introspection : next previous audio real text

Things you can do with a Class Variable

One operation that can be performed with a value of type class is to get its parent class
	Class parentClass = aClass.getSuperclass(); // Java
Another operation is to get the list of all subclasses for a class.
	aSet <- aClass subclasses  " Smalltalk "
You can also get the name of the class as a string
	char * name = typeinfo(aVariable).name();  // C++
Intro OOP, Chapter 25, Slide 03