Suppose I have a constant member and different object have different values for this constant, what is the difference between this constant member and a private member without a setter?
Apart from cv-qualification and accessibility being two completely different concepts there are also practical implications to const public member vs private non-const member.
It all depends on what you want to do.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With