1
Coding / Re: Confused about this syntax >_>
« on: July 20, 2009, 08:45:39 pm »
I'm not entirely sure what this specific case means, but I know something similar that might help. When you have a child class and you want to call the parent class' constructor and pass it some variables, you'd do something like
I guess here it's the same thing, only m_i is not actually related or something. Again, I'm not sure, I just noticed that it looked similar. I hope that helps.
Code: [Select]
childConstructor(int variable) : parentConstructor(variable)
{
// Child constructor code
}
I guess here it's the same thing, only m_i is not actually related or something. Again, I'm not sure, I just noticed that it looked similar. I hope that helps.