In the constructor's initialization-list:
B(int number, const Object& objRef) : A(number), m_obj(objRef)
{}
(Note, this is nothing to do with this being a subclass. You always need to use the initialization list in order to initialize a member variable that's a reference.)