partial class 1



partial_class1
Smart pascal source code
type TTest = partial class Field: Integer; procedure WriteLnMe; begin WriteLn(Field); end; end; type TTest = partial class procedure Inc; begin Field += 1; end; end; type TTest = class partial procedure Dec; begin Field -= 1; end; end; var o := new TTest; o.WriteLnMe; o.Inc; o.WriteLnMe; o.Dec; o.WriteLnMe; {<<< RESULT - CONSOLE LOG >>> ----------------------------- 0 1 0 ----------------------------- {<<<<<<<<< THE END >>>>>>>>>}