home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / lang / cplus / 17948 < prev    next >
Encoding:
Internet Message Format  |  1992-12-14  |  1.3 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!swrinde!elroy.jpl.nasa.gov!ames!data.nas.nasa.gov!taligent!apple!voder!genie!roger
  2. From: roger@genie.UUCP (Roger H. Scott)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Virtual base classes
  5. Keywords: virtual, class
  6. Message-ID: <445@genie.UUCP>
  7. Date: 14 Dec 92 00:20:19 GMT
  8. References: <1992Dec3.202705.16646@ucc.su.OZ.AU> <rmartin.723768537@thor> <1992Dec8.192759.24081@cs.brown.edu>
  9. Reply-To: roger@genie.UUCP (Roger H. Scott)
  10. Organization: proCASE Corporation, Santa Clara, CA
  11. Lines: 13
  12.  
  13. In article <1992Dec8.192759.24081@cs.brown.edu> sdm@cs.brown.edu (Scott Meyers) writes:
  14. >In article <rmartin.723768537@thor> rmartin@thor.Rational.COM (Bob Martin) writes:
  15. >| ... There is nothing that can be done with private inheritance that cannot
  16. >| be done, just as simply, with containment.
  17. >
  18. >Except for redefining virtual functions and accessing protected members.
  19.  
  20. If Kludge is a non-public subclass [derived class] of WellFormed then there
  21. isn't much point in talking about Kludge redefining WellFormed's virtual
  22. functions since you can't use a Kludge in a place where a WellFormed is
  23. expected (i.e., who would ever have hold of a Kludge and send it one of
  24. WellFormed'd messages [call one of WellFormed'd virtual functions], other than
  25. a member function of Kludge?).
  26.