146 reputation
4
bio website
location
age
visits member for 1 year, 4 months
seen Sep 3 at 20:44

May
1
awarded  Scholar
May
1
accepted Refactoring an existing abstract class and its parameters
May
1
awarded  Supporter
Apr
30
comment Refactoring an existing abstract class and its parameters
@AaronKurtzhals As I wrote in the "problem" skeleton file, currently the extra param's value is known to the EntryPoint let's call it main which then invokes some Interpreter which currently does not receive the extra param as a parameter and so does the factory. The extra param comes from another type of user input that is not described by UserInput (which unfortunately I can not change).
Apr
30
comment Refactoring an existing abstract class and its parameters
Well they are similar enough :) but I'm not sure that I understand your solution. Can you please view the edited question (I've tried to make a skeleton showing the problem and the different approaches) and tell me whether my interpretation is correct or not.
Apr
30
awarded  Editor
Apr
30
comment Refactoring an existing abstract class and its parameters
@MartinWickman The answer is: I need to pass a subclass-specific argument to the doStuff method. Thank you for bringing this up, I apologize for not being clear enough, but I think now it's better :). I've edited my question...
Apr
30
revised Refactoring an existing abstract class and its parameters
clarify the problem and add some skeleton so the example would be more "real"
Apr
30
awarded  Student
Apr
30
asked Refactoring an existing abstract class and its parameters