I see no question, but if the question is if you can use an interface instead, I would say yes. And I might add that your child classes would then have to implement the method always, and not as using the abstract approach.
However, the benefit of an interface is also that you can type the object you are using more abstractly (e.g. IMyInterface), and then know the methods which is always implemented, but when you use different signatures for the methods, this will not be a solution.
I think, that if I were you I would make a more abstract argument to the submit method, e.g. a Hashtable. Then if the Submit method do not need arguments you can just set it to null. Another approach would be to pass the nessesary arguments to global variables before calling the argument-less Submit method.
Jacob.
|