After the demo I would like to have a little quiz
about the extract method refactoring. And I would like to ask you
when is it appropriate to apply the extract method refactoring. Here I
have a set of possible scenarios. First one is when there is
duplicated code in two or more methods. When a class is too
large. When the names of two classes are too similar. Or when
a method is highly coupled with a class other than the one
where it is defined. So as usual, please mark all that apply.