Hi,
I come from a Java background, just to be clear const = “constant”. I have two questions, and I’d really appreciate any help just to make sure my thinking is right.
-
Is using const is just a way to make sure we don’t alter the getter methods at a different stage, because the compiler will complain?
-
And is this a standard in C++? Or is it just what Ben prefers.
Cheers,
Reece.