IT-SDK-Java-Plus
Jump to navigation
Jump to search
- How to avoid hardcoding the class name (advanced pattern)
- Dynamically create a new instance using reflection
- return getClass().getConstructor(String.class).newInstance(newName);