class TButton {
public:
virtual void onClick(void)=0;
};
class TButton1 : public TButton {
public:
void onClick(void);
};
void TButton1::onClick(void){
cout<<"click to button1";
}
int main()
{
TButton *btn = new TButton1();
btn->onClick();
return 0;
}