Super

From Xojo Documentation

Revision as of 14:36, 10 July 2018 by PLefebvre (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Language Keyword

Used in a subclass to call overridden inherited methods.

Usage

Super.MethodName

Part Type Description
MethodName String literal The name of the inherited method that is being called.

Notes

If a subclass has a constructor, the Code Editor will automatically suggest calling the super class's constructor. This is because the subclass's constructor overrides the super's constructor, and the new object may not be initialized correctly without a call to the super's constructor.

Super applies only to methods of the super class, not properties. Since inherited properties cannot be overridden the Super keyword does not apply.