V
vsgdp
Is it considered to be bad form to have an abstract method where some of the
parameters are ignored by derived classes?
I'm writing a class that contains an abstract method. The output of the
method can depend on several parameters (but could also only depend on just
one of them). So my idea was to always pass all the parameters, then
derived classes can pick and choose which parameterrs to use in the
implementation of the method.
parameters are ignored by derived classes?
I'm writing a class that contains an abstract method. The output of the
method can depend on several parameters (but could also only depend on just
one of them). So my idea was to always pass all the parameters, then
derived classes can pick and choose which parameterrs to use in the
implementation of the method.