home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / lang / pascal / 6704 < prev    next >
Encoding:
Text File  |  1992-11-18  |  875 b   |  26 lines

  1. Newsgroups: comp.lang.pascal
  2. Path: sparky!uunet!charon.amdahl.com!pacbell.com!decwrl!borland.com!cjaz
  3. From: cjaz@borland.com (Charles Jazdzewski)
  4. Subject: Re: TP7 improved encapsulation?
  5. Message-ID: <1992Nov18.231009.22713@borland.com>
  6. Originator: cjaz@genghis.borland.com
  7. Sender: news@borland.com (News Admin)
  8. Organization: Borland International
  9. References: <jeremy.721961322@scorpion.ac.cowan.edu.au>
  10. Date: Wed, 18 Nov 1992 23:10:09 GMT
  11. Lines: 13
  12.  
  13. Borland Pascal (as well as Turbo Pascal) 7.0 introduce the new keyword 
  14. PUBLIC.  You could get the results you want by including PRIVATE as the
  15. first thing in the object declaration and then PUBLIC'ing only the methods,
  16. or you can mark all of them as desired:
  17.  
  18.   TFoo = object
  19.     private I: Integer;
  20.     public  function GetI: Integer;
  21.     public  procedure SetI(AI: Integer);
  22.   end;
  23.  
  24. Chuck Jazdzewski
  25. Borland International
  26.