#include <iostream.h>
class TButton1
{
protected :
int a;
public:
TButton1(){a=100;}
};
class TButton2
{
protected :
int b;
public:
TButton2(){b=50;}
};
class TSpeedButton:public TButton1,public TButton2
{
public:
void Show(){cout<<"a="<<a<<" b="<<b<<endl;}
};
void main(void)
{
TSpeedButton SpeedButton;
SpeedButton.Show();
} |