Sunday, May 27, 2012

[Action Script] Does extends also mean implements? May,2012

Hi all,

Suppose you have the following:

ActionScript Code: public interface IFoo{    function someFunc():void}public class Foo implements IFoo{    public function someFunc():void    {        // do something...    }}public class Bar extends Foo{    //...someFunc() is inherited, but is IFoo implemented?}
Since Bar extends Foo, does that mean Bar also implements IFoo? I think I remember reading (possibly in Essential ActionScript) that the answer is no, but I can't remember where (and Google's not helping).

Thanks,
Rob
Does extends also mean implements?

Related Post



0 comments: