INHERITS

INHERITS ParentClass

Put this on the beginning of a class file to tell Gambas that the current class inherits the ParentClass class.

You can use the ME or SUPER keyword to access the inherited elements from the class inside as long as you have not made an override for the element.

If your class overrides any properties/methods of the inherited class you must use SUPER to access the inherited class elements and ME to access your own class.

See also