Hey guys!
I was doing some examples from my tutorial, and found that after introducing constructor initializer lists, it almost always used them over initializing in the body of the constructor, but I never found out why. When should I use them, and what benefit do they give?
Simply, it is better because it simply constructs the member rather than default constructing it before you assign to them in the constructor body. If the member has no default constructor or you want to call a specific constructor, you must use the initializer list to do that.