0

An example of "switch statement" smell addressed with "extract method" and "move method" refactoring

joseph 8 months ago 0

Hello everyone, in the switch statements smell page , the first treatment is described as "To isolate switch and put it in the right class, you may need Extract Method and then Move Method.".

I'm having a hard time finding, or coming up with such a problematic example, can someone show me one to help me understand it please ?

Thank you very much.