Virtual functions declared in the base class must be inherited and implemented in the derived class. This error will not be reported when new is a derived class. I carefully reviewed the code and found that one parameter of the virtual function in the base class has const, but not in the subclass. This is an error. Modify it to make the parameters consistent. That's it.
Virtual functions declared in the base class must be inherited and implemented in the derived class. This error will not be reported when new is a derived class. I carefully reviewed the code and found that one parameter of the virtual function in the base class has const, but not in the subclass. This is an error. Modify it to make the parameters consistent. That's it.