How to invoke superclass's method?


#1

How to invoke superclass’s method in childclass’s overrided method?

Is there keyword like super?


#2

You simply refer to a parent class by name adding a class scope Class@ to the method that you want to call.

For example.

// Pseudo code indicating class and method relationships
ClassA
  method()
    [
    // ClassA code
    ]

ClassB : ClassA
  method()
    [
    ClassA@method
    // ClassB code
    ]

Great curated posts to learn about SkookumScript