void funl()const{tout<<”funl”;} protected: void fun2()const{tout<<”fun2”;} public: void fun3()const{cout<<”fhll3”;} }; class Derived:protected Base { public: void fhn4()const{cout<<”filn4”;} }; int main() { Derived obj; obj.funl();//① obj.fun2();//② obj.furd();//③ (责任编辑:admin) |