/* constNoConstMembers.cpp */
#include <iostream>

using namespace std;


class Test {
  int i;
public:
  Test(int i) : i(i) { }

  void doSomething() const;
  void doSomething();
};



void Test::doSomething() const {
  cout << "Test::doSomething() const  called" << endl;
}


void Test::doSomething() {
  cout << "Test::doSomething()  called" << endl;
}



int main() {
  Test t1(15);
  const Test t2(99);

  t1.doSomething();
  t2.doSomething();
  
  system("pause");
  return 0;
}
