0

It is said that a function is const if it doesn't modify the object. So, does it mean that only functions operating on objects can be const functions? In other words, member functions, friend functions can be constant. For non-member functions, if they are passed by reference-to-const, it will always be const. Are these statements correct? Thanks in advance.

Sarah
  • 453
  • 7
  • 16

0 Answers0