How to redefine class variables in child classes?
-
I have a class that I use in several other classes to inherit from. I would like to redefine some of the class variables with a different default value. Is there a way to override or re-initialize class variables in Haxe? Or do I just have to set the variable's value in the new() function? Thanks.
-
Or do I just have to set the variable's value in the new() function?
Yes.
-
@gama11 Thanks.