1、const在函数名后面表示是常成员函数,该函数不能修改对象内的任何成员,只能发生读操作,不能发生写操作 例如:int test()const; 2、const在函数前面,返回值不可修改 例如:const int test();