1234567891011121314151617181920
class Parent { public: Parent(int& target) : nRef( target ) // initialize the reference { } protected: int& nRef; }; class Child : public Parent { public: Child(int& target) : Parent(target) { } };