How does these two definitions const on c++ work?

前端 未结 0 1453
無奈伤痛
無奈伤痛 2020-12-14 03:50

For example, here is the code :

rectangleType operator+(const rectangleType&) const;

I know writing const means you cannot alter its data

相关标签:
回答
  • 消灭零回复
提交回复
热议问题