title: How can I invoke the `Inherited` ancestor method in overridden virtual functions?
body: <p>This works:</p>
  
  <pre><code>constructor TMyObj.Create;
  begin
   inherited;
  end;
  </code></pre>
  
  <p>Why this is not working also?</p>
  
  <pre><code>function TMyObjEx.Import(CONST FileName: string; CONST x, y, z: Integer): string;
  begin
   result:= inherited; // Import(FileName, x, y, z);  &lt;--- Compiler says: "incompatible types"
   //do other stuff here
  end;
  </code></pre>
  
  <p>Declaration of TMyObjEx is like this:</p>
  
  <pre><code>TYPE
  
  TMyObj = class(TChObj)
        private
        protected
        public
         function Import (CONST FileName: string; CONST x, y, z: Integer): string; virtual;     
       end;
  
  TMyObjEx= class(TMyObj)
            private
            protected
            public
             function Import(CONST FileName: string; CONST x, y, z: Integer): string; override;   
           end;
  </code></pre>