mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-12 14:29:34 +02:00
25 lines
297 B
ObjectPascal
25 lines
297 B
ObjectPascal
{ %fail }
|
|
|
|
program project1;
|
|
|
|
{$mode objfpc}{$H+}
|
|
|
|
type
|
|
|
|
IExample = interface
|
|
function add(a, b: single): integer;
|
|
end;
|
|
|
|
{ TExample }
|
|
|
|
TExample = class (TInterfacedObject, IExample)
|
|
function add(a, b: single): single;
|
|
end;
|
|
|
|
function texample.add(a, b: single): single;
|
|
begin
|
|
end;
|
|
|
|
begin
|
|
end.
|