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 7 лет назад обновлен anonymous 7 лет назад 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!

Сервис поддержки клиентов работает на платформе UserEcho