IT-SDK-Java-Plus
Revision as of 18:25, 30 May 2025 by Samerhijazi (talk | contribs)
- How to avoid hardcoding the class name (advanced pattern)
- Dynamically create a new instance using reflection
- return getClass().getConstructor(String.class).newInstance(newName);