pascalabcnet/TestSuite/interface1.pas

17 lines
209 B
ObjectPascal
Raw Normal View History

2015-05-14 22:35:07 +03:00
type IInt1 = interface
function Test: integer;
end;
TClass = class(IInt1)
public function Test: integer;
begin
Result := 3;
end;
end;
var obj : IInt1;
begin
obj := new TClass;
assert(obj.Test=3);
end.