0
Fixed

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 lat temu Ostatnio zmodyfikowane przez anonymous 7 lat temu 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

Odpowiedź

Odpowiedź
Fixed

Fixed, thanks!