C
colonel
Unregistered / Unconfirmed
GUEST, unregistred user!
TA = class
protected
procedure AA:virtual;
end;
TB = class(TA)
protected
procedure AAverride
end;
TC = class(TB)
protected
procedure AA: override;
end;
procedure TB.AA;
begin
//....
inherited;
end;
procedure TC.AA;
begin
///..
inherited;/////这里在继承中怎样不继承父类TB的AA,而只继承TA的AA
end;
因为需要TC类需要继承TB类,如果不是需要我就不从TB中继承了
protected
procedure AA:virtual;
end;
TB = class(TA)
protected
procedure AAverride
end;
TC = class(TB)
protected
procedure AA: override;
end;
procedure TB.AA;
begin
//....
inherited;
end;
procedure TC.AA;
begin
///..
inherited;/////这里在继承中怎样不继承父类TB的AA,而只继承TA的AA
end;
因为需要TC类需要继承TB类,如果不是需要我就不从TB中继承了