Sollicitatievraag bij Thoughtworks

How to refactor common code into a base class.