Last Updated: June 6, 2026
Most of the time, you create objects with new Product() and the compiler links the call to a specific class at build time. Reflection lets you do the same thing at runtime, when the class name might come from a config file, a database row, or an HTTP request. This lesson covers how to find a constructor, invoke it with arguments, deal with private constructors, handle the exceptions that come with the territory, and create arrays the same way.