Const Member Function

Back

In a const member function this is const, and cannot be altered

class A {
  public
  A() {}
  void test() const; // const member function
}