Nice article about Single Responsibility and code for class Employee is refactored ...
but i disagree with AttendanceTracker having has a relationship with Employee object...
and operation on employee object doesnt require another class but in fact there is a need of util or in functional paradigm we need functions to perform operation on employee object ...in my opinion
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Nice article about
Single Responsibility
and code for class Employee is refactored ...but i disagree with
AttendanceTracker
having has a relationship withEmployee
object...and operation on employee object doesnt require another class but in fact there is a need of util or in functional paradigm we need functions to perform operation on employee object ...in my opinion