[comp.lang.c++] Style Question

avjewe@cvl.umd.edu (Andrew D. Jewell) (03/28/91)

imagine a virtual class A with a set of derived classes A1,A2,...An.

Let's say that A has twenty methods (pure virtual ie =0) and
each derived class wants to override all of them.

For the various .h files I'm left with lots of redundant code,
which is to say that aside from the possible presence of "=0",
and the names of constructors/destructors, I've got the same
twenty lines of code in n places.
(worse yet, if I realize that one parameter should be "const"
I need to edit n files)

Any ideas on how to overcome this?

avjewe@cvl.umd.edu