小编eri*_*ick的帖子

为什么编译器说它们看起来相同时实现"与之前的声明不同"?

我有两个单位,第一个,我的界面:

use personas

interface

type
  Tllave = array[0..31] of byte;
  Tdatos = array of byte;

  ImyInterface = interface(IInterface)

    function nombre : string;
    function edad : integer;
    procedure resetear;
    function Proceso(datos : tdatos; cantidad : integer) : integer ;    
    procedure Iniciar(llave : Tllave);
  end;
Run Code Online (Sandbox Code Playgroud)

第二单元,我的对象声明:

use militares

interface

uses personas;

type

  Tmilitares = Class(TInterfacedObject, ImyInterface )
    public
      function nombre : string;
      function edad : integer;
      procedure resetear;
      function Proceso(datos : Tdatos; cantidad : integer) : integer ;    
      procedure Iniciar(llave : Tllave); …
Run Code Online (Sandbox Code Playgroud)

arrays delphi parameters interface tinterfacedobject

5
推荐指数
1
解决办法
357
查看次数