I've noticed that when constructing a subclass, the base class get's
it's contructors called.
Is there some way to avoid this? The base class has one variable, which
gets initialised to 0.
The subclass's constructor sets this variable to a real value.
So first the variable is set to 0, the variable is never used before it
once again gets set to a real value. It's a waste. Any ideas anyone?
it's contructors called.
Is there some way to avoid this? The base class has one variable, which
gets initialised to 0.
The subclass's constructor sets this variable to a real value.
So first the variable is set to 0, the variable is never used before it
once again gets set to a real value. It's a waste. Any ideas anyone?
Comment