home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.pascal
- Path: sparky!uunet!charon.amdahl.com!pacbell.com!decwrl!borland.com!cjaz
- From: cjaz@borland.com (Charles Jazdzewski)
- Subject: Re: TP7 improved encapsulation?
- Message-ID: <1992Nov18.231009.22713@borland.com>
- Originator: cjaz@genghis.borland.com
- Sender: news@borland.com (News Admin)
- Organization: Borland International
- References: <jeremy.721961322@scorpion.ac.cowan.edu.au>
- Date: Wed, 18 Nov 1992 23:10:09 GMT
- Lines: 13
-
- Borland Pascal (as well as Turbo Pascal) 7.0 introduce the new keyword
- PUBLIC. You could get the results you want by including PRIVATE as the
- first thing in the object declaration and then PUBLIC'ing only the methods,
- or you can mark all of them as desired:
-
- TFoo = object
- private I: Integer;
- public function GetI: Integer;
- public procedure SetI(AI: Integer);
- end;
-
- Chuck Jazdzewski
- Borland International
-