Constructor or Init()

Well, I did test different scenarios (not all of them), but it would seem to my eye (and my brain also, because of the names), that Constructor gets called before Init(), why? Well I think that as the name implies the constructor is called when the object is constructed, so it will be the first thing to be called…

It’s like you cannot have an Init() function before the constructor, because it needs to first construct the object before it can call Init()… Just my worthless two cents!

Privacy & Terms