Mega Code Archive

 
Categories / Flash ActionScript / Class
 

You can call the superclass implementation from the subclass implementation using the super keyword to reference the superclass

class Superclass {         public function Superclass(  ) {}         public function toString(  ):String {             return "Superclass.toString(  )";         }     }     class Subclass extends Superclass {         public function Subclass(  ) {}         override public function toString(  ):String {             super.toString();             return "Subclass.toString(  )";         }     }