Question

I'm having a small project in Actionscript 3, and everything would be very much easier if it was possible to call code in the superclass from the subclass.

This is the project:

CarGame
        Car

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

Was it helpful?

Solution

You'd call them with the super statement.

Such as:

super.someFunction();

OTHER TIPS

See the super statement.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top