inherited

inherited就是调用祖先类的函数,如果不带参数就是默认调用同名函数
如果带参数则表明子类中的函数个数可能比祖先类要多取其中的几个参数传过去
例如
祖先类有个函数 Create(AName:string);
子类有个函数 Create(AName:string;AComponent:TObject);override;
那么子类的Create函数内就可以这样调用祖先类:
procedure TAClass.Create(AName:string;AComponent:TObject);
begin
    Inherited Create(AName);
end;

转自:http://zhidao.baidu.com/question/203581444.html

看完以上答案还是不太明白,看下面的:

这段话已经能够说的很清楚了啊。
如果有同名同参数的父类方法,
单独用inherited;就是继承父类的同名同参数方法。
如果inherited XXX(..), 说明父类有了同名的重载方法,你指定继承其中的一个方法。
转自:http://zhidao.baidu.com/question/107608343.html

看看这个例子,对理解有帮助:http://bbs.csdn.net/topics/10134234

原文地址:https://www.cnblogs.com/wanqian/p/3156353.html