home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!munnari.oz.au!spool.mu.edu!howland.reston.ans.net!sol.ctr.columbia.edu!emory!ncratl!vkessler
- From: vkessler@ncratl.AtlantaGA.NCR.COM (Vance Kessler)
- Newsgroups: comp.lang.c++
- Subject: Private vs. Protected
- Message-ID: <90218@ncratl.AtlantaGA.NCR.COM>
- Date: 12 Jan 93 13:28:29 GMT
- Organization: NCR Engineering and Manufacturing Atlanta -- Atlanta, GA
- Lines: 12
-
-
- I would like to get your feelings as to when to use private versus when to use
- protected.
-
- I generally make instance variables protected to give direct access to
- sub-classes. But, I am thinking that it might make maintenance easier to make
- them private and always access them through protected access functions.
-
- I would appreciate your opinions on this.
-
- Vance Kessler
- vkessler@ncratl.atlantaga.ncr.com
-