home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / lang / cplus / 13139 < prev    next >
Encoding:
Text File  |  1992-09-01  |  1.1 KB  |  39 lines

  1. Path: sparky!uunet!cs.utexas.edu!unisql!nandraj
  2. From: nandraj@unisql.UUCP (Nandraj Arni)
  3. Newsgroups: comp.lang.c++
  4. Subject: Protected Derived classes.
  5. Message-ID: <3570@unisql.UUCP>
  6. Date: 31 Aug 92 23:41:47 GMT
  7. Reply-To: nandraj@unisql.UUCP (Nandraj Arni)
  8. Organization: UniSQL, Inc., Austin, Texas, USA
  9. Lines: 28
  10.  
  11.  
  12.  
  13.      I wanted to know why protected derived classes are not disscussed
  14. in ARM and not implemented in our GNU C++ compiler. What I am talking 
  15. about is:
  16.  
  17. class B { /*...*/ };
  18.  
  19. class D : protected B { /* ...*/ };
  20.  
  21. class DD : public D { /* ...*/ };
  22.  
  23.  
  24.   I want to use B's functions and data in D and DD but should not visible
  25. outside D and DD. Is this feature implemented in other compilers? Why
  26. ARM doesn't disscuss this?
  27.  
  28. -- 
  29. *******************************************************************
  30. Nandraj Arni
  31.  
  32. UniSQL, Inc.                           Voice: 512 343 7372 Ext. 107
  33. 9390 Research Blvd.                              Home: 512 794 9386
  34. Kaliedo II                             FAX: 512 343 7383
  35. Austin, TX 78759
  36.  
  37. Email: unisql!nandraj@cs.utexas.edu
  38. *******************************************************************
  39.