home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: sparky!uunet!psgrain!hippo!g89s9112
- From: g89s9112@hippo.ru.ac.za (Dirk Sturzebecher)
- Subject: accessibility, HELP
- Message-ID: <1992Sep13.164159.29192@hippo.ru.ac.za>
- Organization: Rhodes University, Grahamstown, South Africa
- Distribution: global
- Date: Sun, 13 Sep 1992 16:41:59 GMT
- Lines: 37
-
- Hi,
- I got a question,
-
- for the follwoing definition
-
- class a
- {
- functionx ..
- }
-
- class b : a
- {
- more functions ...
- }
-
- class c
- {
- b array[8];
-
- more stuff;
- }
-
- why do I get a "a:functionx not accessible" if I try to use function x
- in the followin manner
-
- array[1].functionx()
-
- ??????
-
- Any help ?
- Any suggestions ?
-
- Cheers, Dirk
- --
- -----------------------------------------------------------------------
- Dirk Sturzebecher g89s9112@alpha.ru.ac.za
- Rhodes University Grahamstown South Africa
-