tbs0107.pp 413 B

12345678910111213141516171819202122232425262728293031
  1. { PAGE FAULT PROBLEM ... TEST UNDER DOS ONLY! Not windows... }
  2. { -Cr -g flags }
  3. Program Test1;
  4. {$ifdef go32v2}
  5. uses
  6. dpmiexcp;
  7. {$endif}
  8. type
  9. myObject = object
  10. constructor init;
  11. procedure v;virtual;
  12. end;
  13. constructor myobject.init;
  14. Begin
  15. end;
  16. procedure myobject.v;
  17. Begin
  18. WriteLn('Hello....');
  19. end;
  20. var
  21. my: myobject;
  22. Begin
  23. my.init;
  24. my.v;
  25. end.