- Joined
- Sep 9, 2007
- Messages
- 6,759
JASS:
library ToTestStuff initializer init
private interface eventHandler
method onCreate takes nothing returns nothing defaults nothing
endinterface
struct parent extends eventHandler
public static method create takes nothing returns nothing
local thistype this = thistype.allocate()
call .onCreate()
return this
endmethod
endstruct
struct child extends parent
method onCreate takes nothing returns nothing
call BJDebugMsg("It worked!")
endmethod
endstruct
private function init takes nothing returns nothing
call child.create()
endfunction
endlibrary
Can anyone tell me why this does not work and how to make it work?