If the default argument is initialized in the base_class function there is no error. But for the following explicit super.new the following error is obtained. Thanks in Advance

  • 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)