[Flashcoders] Inheritance and super()

2005-11-18 Thread Andreas Rønning
If class A's constructor calls class A's main(), and class A's main() calls class A's myFunction(), what happens if class B extends A, overrides myFunction(), and then calls super() ? Is the overridden myFunction called or the original? - Andreas ___

Re: [Flashcoders] Inheritance and super()

2005-11-18 Thread Ian Thomas
Why not try it and find out..? I actually don't know about Flash off the top of my head - I suspect it would work (i.e. the overridden function would be called). But it's worth a try. In some OOP languages (notably C++ when dealing with virtual functions/abstract classes) this causes lots of