Hey guys
I have a stub method in a parent struct and I want it to be called ONLY if it is overrriden in a child struct.
What's the best way to do this?
I was hoping something like this would work:
Thank you
I have a stub method in a parent struct and I want it to be called ONLY if it is overrriden in a child struct.
What's the best way to do this?
I was hoping something like this would work:
JASS:
struct parentstruct
stub method onPeriodic takes nothing returns nothing
endmethod
private static method periodic takes nothing returns nothing
if this.onPeriodic != null then
call this.onPeriodic()
endif
endmethod
endstruct
Thank you