home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.std.c++
- Path: sparky!uunet!usc!zaphod.mps.ohio-state.edu!sdd.hp.com!ux1.cso.uiuc.edu!news.cso.uiuc.edu!uxa.cso.uiuc.edu!gu24522
- From: gu24522@uxa.cso.uiuc.edu (Gennady Ushman )
- Subject: operator overloading [] with derived classes
- Message-ID: <BunFr0.EoF@news.cso.uiuc.edu>
- Sender: usenet@news.cso.uiuc.edu (Net Noise owner)
- Organization: University of Illinois at Urbana
- Date: Wed, 16 Sep 1992 02:18:35 GMT
- Lines: 7
-
- Like, how do I do this? If I have the & operator[] defined in the base class,
- how do I access the array elements from the derived classes. Each array is
- allocated by the base class constructor when the object of the derived class
- is created. There are a series of virtual functions defined in the base class
- that are redefined within the derived classes and that must access the arrays
- defined by the base class. Does anyone know how to do this?
-
-