Must you `override` when implementing an interface?

Jeff Dyer jodyer at adobe.com
Mon Mar 26 11:11:28 PDT 2007


 
> The question came up in the context of documenting methods,
> distinguishing methods that are being defined in the class (and are
> not part of an interface).  In that sense, an `implement` attribute
> would have some of the benefit of `override` in catching type-ohs:
> the compiler could signal an error if you define a method as
> implementing an interface and there is no matching interface.

It already does. In AS3/draft-ES4 it is a static error if any of the
inherited interface methods is not implemented in the inheriting class,
unlike in Java. Partially implemented (or abstract) classes don't exist
in ES4.

Jd




More information about the Es4-discuss mailing list