-
If you want to create an explicit user-defined new method (even in extended class), you must use the “function new()” not “function new2()”
-
As you have a custom user defined new method() in base class, you must declare the explicit user-defined new method in extended class. (Just change the new2() to new(), it should work)