#include class Test { private: int _a; int& _b = _a; public: Test() { _a = 5; std::cout << "Normal constructor" << std::endl; } void printValue() { _b = 12; std::cout << _a << "---" << _b << std::endl; } void printAddress() { std::cout << &_a << "---" << &_b << std::endl; } }; int main() { Test t; t.printValue(); t.printAddress(); return 0; }