Introduction to OOP | Chapter 25: Reflection and Introspection : | next | previous | audio | real | text |
Class parentClass = aClass.getSuperclass(); // JavaAnother 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++