testclassmethods.obs

来自「格式化源码的最新板」· OBS 代码 · 共 6 行

OBS
6
字号
unit testclassmethods;interface type tfooform=class private class var fish:integer
;class function getwibble:integer;static;public class function foo:boolean;class 
procedure bar;class property wibble:integer read getwibble;end;implementation class
procedure tfooform.bar;begin inc(fish);end;class function tfooform.foo:boolean;begin
result:=true;end;class function tfooform.getwibble:integer;begin result:=fish;end
;end. 

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?