Contradiction in Documentation for Extended Records
Reference Guide Chapter 9.1
https://www.freepascal.org/docs-html/current/ref/refse61.html#x120-1440009.1
Half way down:
"Some of the restrictions when compared to classes or objects are obvious from the syntax diagram:
- No inheritance of records.
- No published and protected section exists.
- Constructors or destructors cannot be defined.
- Class methods (if one can name them so) require the static keyword.
- Methods cannot be virtual or abstract – this is a consequence of the fact that there is no inheritance."
At the end with the Examples
TTest4 = record
private
a : Integer;
protected
function getp : integer;
public
b : string;
procedure setp (aValue : integer);
property p : integer read Getp Write SetP;
public
case x : integer of
1 : (Q : string[10]);
2 : (S : String[10]);
end;
See also:
https://forum.lazarus.freepascal.org/index.php?topic=69812.msg542930;topicseen#new