tw7322.pp 297 B

123456789101112131415161718192021222324
  1. { %fail }
  2. program project1;
  3. {$mode objfpc}{$H+}
  4. type
  5. IExample = interface
  6. function add(a, b: single): integer;
  7. end;
  8. { TExample }
  9. TExample = class (TInterfacedObject, IExample)
  10. function add(a, b: single): single;
  11. end;
  12. function texample.add(a, b: single): single;
  13. begin
  14. end;
  15. begin
  16. end.