The class is instantiated somewhere down the line as
<code>
new CltmRsltDbltBase (MAX_TAPS);
</code>

So what I want to do is that I want to slightly change some behaviour within the member of CltmRsltDbltBase using the newly introduced maxFields value. Earlier a constant (#define) was used in this place. However for the new class CltmRsltTapLengthTable I need the value to be different from the existing constant. The behaviour of other classes already derived from CltmRsltDbltBase should not change.

As you would have already gathered I am a C programmer trying to fix C++ code!

Please dont suggest drastic design changes since it is an existing code base with a lot of running
and stable systems. I wont be allowed to change the design.

Any help would be greatly appreciated.

Thanks.

PS: I tried using my minimal knowledge about default values instead of 2 (overloaded) constructors - but that didnt work either.

05-31-2002

Unregistered

Sorry small correction - the instantiation will be like

new CltmRsltTapLengthTable(MAX_TAPS)

and _not_ as mentioned in the post.

05-31-2002

RpiMatty

The code that you want to change it to looks good to me.
Have you tested it?

Since maxFields is a private var, the only class that can access it directly (ie without using helper functions) is the class it is defined in. So in the constructor you should be able to set it.