3 ms·
Haha, smart one. The point is, you can perform actions on what you own, and in turn you can ask what you own (for example a laptop) to perform an action on itse
by Udik 6y ago
Haha, smart one. The point is, you can perform actions on what you own, and in turn you can ask what you own (for example a laptop) to perform an action on itself or its belongings.
You don't need to know how to handle a filesystem and a specific brand of hard drive to ask your laptop to wipe itself; the laptop in turn doesn't need to know all the internals of the hard drive to ask it to perform that action.
- valenterry 6y agoI agree with that. But my answer was for https://news.ycombinator.com/item?id=25118437 https://news.ycombinator.com/item?id=25118437 > So a method call fire() on an object Employee is more "object oriented" than having HREmployeeService.fireEmployee(employeeId) Which doesn't make sense - ignoring the "to set field employedTo directly on EmployeeDAO" because that is unrelated.