#include<iostream> using namespace std; class human { public:void walk(){cout<<"人类能够直立行走!"<<endl;} }; class mother:public human{}; class father:public human{}; class son:public mother,public father{}; int main() { son tom; tom.father::walk(); tom.mother::walk(); //tom.human::walk(); return 0; }