Don't I have to call super() in constructor when class extends Sprite in actionscript3?

前端 未结 3 1590
-上瘾入骨i
-上瘾入骨i 2020-12-03 23:16

I always don\'t call super() when I extends Sprite.
But doesn\'t not calling super() cause any problem?

Till now, I don\'t have any problem and I h

3条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-03 23:42

    You can safetly exclude the call to the base constructor. If you do not call super() in the constructor, the compiler will add a call to the base constructor with no arguments.

提交回复
热议问题