1. 修饰成员函数 (常成员函数)

    在常成员函数中,不能改变数据成员的值。

    常成员函数只能调用const成员函数

    image.pngimage.png

  2. 常对象  常对象指针  常引用

  3. const修饰数据成员

     image.png