#include <iostream>

class X
{
public:
    X(int x) : m_x(x) {}
    void PrintMe() { std::cout << m_x << std::endl; }
private:
    int m_x;
};

int main()
{
    X a = 23;
    X b = 5;

    b.PrintMe(); // 5
    b = a;
    b.PrintMe(); // 23

    X c = b;
    c.PrintMe(); // 23
}
