tb0298.pp 596 B

123456789101112131415161718192021222324252627282930313233343536
  1. {$mode objfpc}
  2. type
  3. tobject1 = class
  4. readl : longint;
  5. function readl2 : longint;
  6. procedure writel(ll : longint);
  7. procedure writel2(ll : longint);
  8. property l : longint read readl write writel;
  9. property l2 : longint read readl2 write writel2;
  10. end;
  11. procedure tobject1.writel(ll : longint);
  12. begin
  13. end;
  14. procedure tobject1.writel2(ll : longint);
  15. begin
  16. end;
  17. function tobject1.readl2 : longint;
  18. begin
  19. end;
  20. var
  21. object1 : tobject1;
  22. i : longint;
  23. begin
  24. object1:=tobject1.create;
  25. i:=object1.l;
  26. i:=object1.l2;
  27. object1.l:=123;
  28. end.