in C++

'const' Objects can only be accessed by 'const' member functions.
Why member functions which are not 'const' can not access these 'const' objects? Why the language has been designed in this way?
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!