When declaring a struct class with function, you don't have to use the constructor keyword. But when declaring a child class, you have to, or it won't work:
Works when added:
I found it a little odd that the constructor keyword is optional in one use case and a strict requirement in the other.
Please sign in to leave a comment.