Introduction to OOP
Chapter 25: Reflection and Introspection :
next
previous
audio
real
text
Getting the Class from a String
In some languages, you can take the name of a class (a string) and from this get the class object.
Class aClass = Class.forName("classname"); // Java
The class does not even have to be loaded. The class will automatically be loaded for you.
Intro OOP,
Chapter 25
, Slide 04