Call function in superclass from subclass

I have a small project in ActionScript 3 and it would be much easier if I could call the code in a superclass from a subclass.

This is a project:

CarGame
        Car

Is it possible to call a function in the CarGame class from the Car class?

+1


a source to share


2 answers


You would call them using the super statement.

For instance:



super.someFunction();

      

+5


a source


See super

.



+2


a source







All Articles