0
Виправлено

Yup - there is a mistake... in the Context class instead of "return strategy.execute(a, b)" should be "return strategy.algorithm(a, b)", because Strategy class doesn't have "execute" method

Klim 4 роки тому оновлено anonymous 4 роки тому 1

Yup - there is a mistake... in the Context class instead of "return strategy.execute(a, b)" should be "return strategy.algorithm(a, b)", because Strategy class doesn't have "execute" method

Відповідь

Відповідь
Виправлено

Fixed, thanks!