🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Gennady Ushman Wed, 16 Sep 1992 02:18
operator overloading [] with derived classes
#178
Author: 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?
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads