property promotion



property_promotion
Smart pascal source code
type TBase = class protected Field: Integer; property Prop: Integer read Field; end; type TSub = class(TBase) public property Prop; end; WriteLn(TSub.Create.Prop); {<<< RESULT - CONSOLE LOG >>> ----------------------------- 0 ----------------------------- {<<<<<<<<< THE END >>>>>>>>>}