/* -*- C++ -*- */ /************************************************************************* * Copyright(c) 1995~2005 Masaharu Goto (root-cint@cern.ch) * * For the licensing terms see the file COPYING * ************************************************************************/ // // class inheritance test 2 // // same member function name // inheritance from header information and later bind the body // #ifdef __hpux #include #else #include using namespace std; #endif class A { protected: int a1; public: A(int i); int A1(void); void disp(void) { cout << "a1=" << a1 << "\n"; } }; class B : public A { int b1; public: int B1(void); B(int i); void disp(void) { cout <<"a1="<