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

Class Objects

In most languages, introspection begins with an object that represents the class. Typically this object has class Class.

C++typeinfo aClass = tyupeid(AVariable);
CLOS(class-of aVariable)
Delphi Pascal aClass := aVariable.ClassType;
JavaClass aClass = aVariable.getClass();
SmalltalkaClass <- aVariable class

Intro OOP, Chapter 25, Slide 02