Override modifier

Apply the override modifier to a function or property implementation to declare that the subtype overrides the implementation of an inherited function or property with the same signature.

For example, the following line might appear in a subtype overriding a myFunction method in its superclass:

override function myFunction(myParameter : String )

If Gosu detects that you are overriding an inherited function or method with the same name but you omit the override keyword, you get a compiler warning. Additionally, the Gosu editor offers to insert the modifier if the override keyword seems appropriate.