RosettaCodeData/Task/Respond-to-an-unknown-method-call/Object-Pascal/respond-to-an-unknown-method-call.object

19 lines
253 B
Text
Raw Permalink Normal View History

2014-04-02 16:56:35 +00:00
type
Tanimal = class
public
procedure bark(); virtual; abstract;
end;
implementation
var
animal: Tanimal;
initialization
animal := Tanimal.Create;
animal.bark(); // abstract method call exception at runtime here
animal.Free;
end.