I'm getting the feeling that a virtual function only allows you read data members and you're not able to alter or set them equal to anything in a virtual function. Is this true?
I'm getting the feeling that a virtual function only allows you read data members and you're not able to alter or set them equal to anything in a virtual function. Is this true?
No, that's not true. The thing that governs whether you can modify member variables is whether the function is const.
Oh, I did make it constant. Thanks!