Super

From Xojo Documentation

You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!

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.