C++高手help me
C++Builder中为何私有继承一个TForm类会产生如下错误:
E2133 Virtual Function '__fastcall TForm2::TForm2(TComponent *)' conflicts with base class 'TForm'
而公有继承则不会,请大侠赐教!
具体为:
class TForm2: private TForm
{
public:
__fastcall TForm2(Classes::TComponent * Owner) : TForm(Owner) {}
}