Sure, but it doesn't make sense to have such a parameter; the inputs are different. Code sharing can be implemented by a common base class.