#include<iostream>
using namespace std;
class M
{
protected:
int m;
public:
void get_m(int);
};
class N
{
protected:
int n;
public:
void get_n(int);
};
class P:public M, public N //多重继承
{
public:
void display(void);
};
void M::get_m(int x)
{ m=x; }
void N::get_n(int y)
{ n=y; }
void P::display()
{ cout<<"m= "<<m<<endl;
cout<<"n= "<<n<<endl;
cout<<"m*n= "<<m*n<<endl;
}
int main()
{
P p;
p.get_m(10);
p.get_n(20);
p.display();
int m=0;
getchar();
return 0;
}