home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / lang / cplus / 19001 < prev    next >
Encoding:
Internet Message Format  |  1993-01-12  |  787 b 

  1. Path: sparky!uunet!munnari.oz.au!spool.mu.edu!howland.reston.ans.net!sol.ctr.columbia.edu!emory!ncratl!vkessler
  2. From: vkessler@ncratl.AtlantaGA.NCR.COM (Vance Kessler)
  3. Newsgroups: comp.lang.c++
  4. Subject: Private vs. Protected
  5. Message-ID: <90218@ncratl.AtlantaGA.NCR.COM>
  6. Date: 12 Jan 93 13:28:29 GMT
  7. Organization: NCR Engineering and Manufacturing Atlanta -- Atlanta, GA
  8. Lines: 12
  9.  
  10.  
  11. I would like to get your feelings as to when to use private versus when to use
  12. protected.
  13.  
  14. I generally make instance variables protected to give direct access to
  15. sub-classes.  But, I am thinking that it might make maintenance easier to make
  16. them private and always access them through protected access functions.
  17.  
  18. I would appreciate your opinions on this.
  19.  
  20. Vance Kessler
  21. vkessler@ncratl.atlantaga.ncr.com
  22.