Java: Extending Class At Runtime
问题 I have the capability to extend a class at compile time, but I need to be able to create an instance of this subclass at runtime using an instance of the superclass that was already instantiated. This should be possible in theory because superclass constructors are already called before the subclass constructor. I do not have access to the program sufficiently to change the instantiation to my subclass nor to interrupt the original instantiation. Use Case: There is an existing array of