主题:这个是什么意思.
class ix
{public:
virtual void fx1()=0;
virtual void fx2()=0;
};
class iy
{public:
virtual void fy1()=0;
virtual void fy2()=0;
};
class ca:public ix,public iy ////这个CA 是继承的IX,IY两个类吗?
{public:
virtual void fx1(){cout<<"fx1"<<endl;}
virtual void fx2(){cout<<"fx2"<<endl;}
virtual void fy1(){cout<<"fy1"<<endl;}
virtual void fy2(){cout<<"fy2"<<endl;}
};
{public:
virtual void fx1()=0;
virtual void fx2()=0;
};
class iy
{public:
virtual void fy1()=0;
virtual void fy2()=0;
};
class ca:public ix,public iy ////这个CA 是继承的IX,IY两个类吗?
{public:
virtual void fx1(){cout<<"fx1"<<endl;}
virtual void fx2(){cout<<"fx2"<<endl;}
virtual void fy1(){cout<<"fy1"<<endl;}
virtual void fy2(){cout<<"fy2"<<endl;}
};