home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / lang / cplus / 13581 < prev    next >
Encoding:
Text File  |  1992-09-13  |  821 b   |  48 lines

  1. Newsgroups: comp.lang.c++
  2. Path: sparky!uunet!psgrain!hippo!g89s9112
  3. From: g89s9112@hippo.ru.ac.za (Dirk Sturzebecher)
  4. Subject: accessibility, HELP
  5. Message-ID: <1992Sep13.164159.29192@hippo.ru.ac.za>
  6. Organization: Rhodes University, Grahamstown, South Africa
  7. Distribution: global
  8. Date: Sun, 13 Sep 1992 16:41:59 GMT
  9. Lines: 37
  10.  
  11. Hi,
  12. I got a question,
  13.  
  14. for the follwoing definition
  15.  
  16. class a
  17. {
  18.   functionx ..
  19. }
  20.  
  21. class b : a
  22. {
  23.   more functions ...
  24. }
  25.  
  26. class c
  27. {
  28.   b array[8];
  29.  
  30.   more stuff;
  31. }
  32.  
  33. why do I get a "a:functionx not accessible" if I try to use function x
  34. in the followin manner
  35.  
  36. array[1].functionx()
  37.  
  38. ??????
  39.  
  40. Any help ?
  41. Any suggestions ?
  42.  
  43. Cheers, Dirk
  44. -- 
  45. -----------------------------------------------------------------------
  46. Dirk Sturzebecher                g89s9112@alpha.ru.ac.za
  47. Rhodes University Grahamstown            South Africa
  48.