Multiple Inheritance in ActionScript 3

前端 未结 4 1140
半阙折子戏
半阙折子戏 2021-02-06 05:50

Multiple Inheritance in ActionScript 3? Is it possible? I have read somewhere that it is possible in as3.

If yes then how?

this is my Doucument Class A.as

<
4条回答
  •  庸人自扰
    2021-02-06 06:34

    Umm, guys!

    I can show you two different ways to "mimic" multiple inheritance:

    1. Using the #import feature: http://archive.darronschall.com/weblog/2006/10/multiple-inheritance-in-actionscript-3.html

    2. Don't forget that ActionScript is EcmaScript. It's still a prototype based language: http://jolierouge.net/2010/01/as3-multiple-inheritancemixins/

    I know... not "real" MI, but they look like a duck, speak like a duck...

提交回复
热议问题