class Base { public: virtual int func1()=0; virtual int func2()=0; protected: int n; }; class der1: public Base { //implements the virtual functions of the base and uses the protected data members of the base. }; class der2: public Base { //implements the virtual functions of the base and uses the protected data members of the base. }
class Intermediate: public Base { ... }
class der1: public Intermediate { ... }; class der2: public Intermediate { ... }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)