tbs0260.pp 439 B

1234567891011121314151617181920212223242526272829303132
  1. program test;
  2. type
  3. obj1 = object
  4. st : string;
  5. constructor init;
  6. procedure writeit;
  7. end;
  8. obj2 = object(obj1)
  9. procedure writeit;virtual;
  10. end;
  11. obj3 = object(obj2)
  12. l : longint;
  13. end;
  14. constructor obj1.init;
  15. begin
  16. end;
  17. procedure obj1.writeit;
  18. begin
  19. end;
  20. procedure obj2.writeit;
  21. begin
  22. end;
  23. begin
  24. end.