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