Sunday, June 3, 2012

[Action Script] instantiating EventDispatcher vs IEventDispatcher June,2012

I was going through an AS3 book. Where it's written that the "Xyz" class instantiates IEventDispatcher.
I understand when a class extends EventDispatcher. ( Means it can use the functions of EventDispatcher , especially dispatchEvent() ).

But what does it signifies when i say that a class instantiates an Interface ? What does it mean in this context. What Xyz would be able to do by instantiating IEventDispatcher, which it couldnot by instantiating EventDispatcher.

Any explanation appreciated.

Thnx in advance!

V.
instantiating EventDispatcher vs IEventDispatcher

Related Post



0 comments: