Keyword

# Super

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

## Description

Used in a subclass to call overridden inherited methods.

## Usage

``` xojo
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 <span class="title-ref">Super</span> class's constructor. This is because the subclass's constructor overrides the <span class="title-ref">Super</span>'s constructor, and the new object may not be initialized correctly without a call to the <span class="title-ref">Super</span>'s constructor.

<span class="title-ref">Super</span> applies only to methods of the <span class="title-ref">Super</span> class, not properties. Since inherited properties cannot be overridden the <span class="title-ref">Super</span> keyword does not apply.

## Compatibility

|                       |     |
|-----------------------|-----|
| **Project Types**     | All |
| **Operating Systems** | All |
