Path: utzoo!attcan!uunet!pmafire!uudell!milano!cs.utexas.edu!sdd.hp.com!uakari.primate.wisc.edu!uflorida!ziggy!screamer!tscs!tct!chip From: chip@tct.uucp (Chip Salzenberg) Newsgroups: comp.lang.c++ Subject: Re: Base class access: by name only? Message-ID: <27497239.19F@tct.uucp> Date: 20 Nov 90 18:13:12 GMT References: <1990Nov19.012937.27283@Neon.Stanford.EDU> Organization: Teltronics/TCT, Sarasota, FL Lines: 24 According to philip@pescadero.stanford.edu: >In C++, it seems you have to use the base class name to get to a >member redefined in the current class. True, but you can use the preprocessor as a workaround: class Base { ... }; #define DerivedSuper Base class Derived: public Base { ... }; Derived::member() { return DerivedSuper::member() + 1; } -- Chip Salzenberg at Teltronics/TCT , "I've been cranky ever since my comp.unix.wizards was removed by that evil Chip Salzenberg." -- John F. Haugh II