Override Object.toString Error
问题 Why does this produce an error in Flash Builder?: package { public class Foo { override public function toString():String { return "Foo"; } } } Tab completion suggests that this is available for override... Error message: Multiple markers at this line: -public -1020: Method marked override must override another method. -overridesObject.toString 回答1: Remove override on the toString() method. There is a popular misconception among about the toString() method, namely: if one wants to provide a