Inherited in record constructor
Inherited in record constructor
Just noticed that following code compiles successfully, should not it fail with compiler error?
type
TRec = record
F: Integer;
constructor create(AF: integer);
end;
constructor TRec.create(AF: Integer);
begin
inherited;
F := AF;
end;
Just noticed that following code compiles successfully, should not it fail with compiler error?
type
TRec = record
F: Integer;
constructor create(AF: integer);
end;
constructor TRec.create(AF: Integer);
begin
inherited;
F := AF;
end;
Compiler accepts it and disregards the call.
ReplyDelete/sub
ReplyDelete