#include <iostream>

using namespace std;

class Person {

public:
Person(int a, int b) {
this->a = a;
this->b = b;
}

void showInfo() const { // 常函数
//this->a++; 报错: 因为没有被mutable 修饰;
cout << "this->a: " << this->a << endl;

this->b++;
cout << "this->b: " << this->b << endl;
}

int a;
mutable int b; // 在常函数中, 修改指针指向的这个值;
};


void test01() {
Person person(10, 20);

person.showInfo();
}

int main() {

test01();

return EXIT_SUCCESS;
}