I read that to change access a private constant data member of a class you must declare your member function as constant.
(* The above should read*)
I read that to access a private constant data member of a class you must declare your member function as constant.
I think I also remember reading non-member friend functions of a class can not be declared as constant why is this?
To refresh my memory a little, constant data members must be initialized using a member initializer in the constructor definition correct. Suppose you want to initialize a private data member from a friend function would you use the same notation?