1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
namespace SomeLongNamespaceName { class Foo { }; } class Bar : SomeLongNamespaceName::Foo { public: Bar() : SomeLongNamespaceName::Foo(), myNumber(3), // <-- this line myOtherNumber(5) { } private: int myNumber; int myOtherNumber; };