⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 testinterfaceimplements.out

📁 格式化源码的最新板
💻 OUT
字号:
unit testinterfaceimplements;

interface

type
  imyinterface = interface
    procedure p1;
    procedure p2;
  end;

  tmyclass = class(TObject, IMyInterface)
    fmyinterface: imyinterface;
    property myinterface: imyinterface Read fmyinterface implements imyinterface;
  end;

  tmyimplclass = class
    procedure p1;
    procedure p2;
  end;

  tmyclass2 = class(TInterfacedObject, IMyInterface)
    fmyimplclass: tmyimplclass;
    property myimplclass: tmyimplclass Read fmyimplclass implements imyinterface;
    procedure imyinterface.p1 = myp1;
    procedure myp1;
  end;

implementation

procedure tmyclass2.myp1;
begin
end;

procedure tmyimplclass.p1;
begin
end;

procedure tmyimplclass.p2;
begin
end;

end.
 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -