Informix Error -4026
-4026 Member "name" is already defined in base class "class".
A derived class inherits all the members of its base classes. You cannot add a member that has the same name as a member from the base class.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-4026 fires when a derived class adds a member with the same name as one it already inherits from a base class — per the official guidance, a derived class inherits all base-class members, so it can't add a new member sharing a base member's name.
- A derived class declaring a member name that already exists on a base class, per the official guidance — the direct, only cause.
Solutions / Resolution
- Choose a different name for the new member, since the base class's member of that name is already inherited, per the official guidance.
Examples
A derived class re-adding an inherited member name
CLASS Base
DEFINE total DECIMAL
END CLASS
CLASS Derived DERIVED FROM Base
DEFINE total DECIMAL
-- -4026: total is already inherited from Base
END CLASS
Corrected
CLASS Derived DERIVED FROM Base
DEFINE subtotal DECIMAL
END CLASS
Diagnostic Checks
- Check every base class's members before adding a new member to a derived class, and rename it if it collides.
Related Errors / Related Topics
No closely related error codes are cross-referenced for -4026 in this set yet.
A derived class's new member has the same name as one already inherited from a base class — choose a different name.