#include <iostream>
#include <conio.h>
using namespace std;
class Test
{
public:
Test() { m_int = 0; }
~Test(){};
protected:
private:
int m_int;
public:
Test& get();
Test& move();
};
inline Test& Test::move()
{
m_int++;
return *this;
}
inline Test& Test::get()
{
cout<<m_int<<endl;
m_int ++;
return *this;
}
int main()
{
Test t1;
t1.move().get();//1
t1.get();// 2
getch();
return 0;
}