🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c++
Article #178

operator overloading [] with derived classes

#178
From: Gennady Ushman
Date: Wed, 16 Sep 1992 02:18
6 lines
897 bytes
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?
Technical Details
Message-ID: <BunFr0.EoF@news.cso.uiuc.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!usc!zaphod.mps.ohio-state.edu!sdd.hp.com!ux1.cso.uiuc.edu!news.cso.uiuc.edu!uxa.cso.uiuc.edu!gu24522

Show Full Headers
Complete Article Headers
Newsgroups: comp.std.c++
Path: arc1-ca.pugleaf.net!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