https://hastebin.com/leyiqeyemo.xml
which of it performs better and maintainable?
i personally go for #1
I wouldn't store the employee in the calculator, just pass it when calling the methods. That way you only need one instance of it and is easier to test.
Обсуждают сегодня