Skip to main content
3 events
when toggle format what by license comment
Feb 11, 2020 at 8:11 comment added gnasher729 You don’t make any sense. If the class is fixed, there is no need for dependency injection.
Feb 10, 2020 at 17:34 comment added Unimportant "You can use a fixed instance of a fixed class, but then dependency injection becomes rather pointless. Not saying you can’t do it, but why would you?" To isolate the Gripper from the rest of the world. The Gripper would no longer depend on the concrete way GrippableItems are stored and any changes to this would only require GripperItemLocator to be updated. We do not require run-time polymorphism and the program would only contain a single GripperItemLocator implementation at a time. What does a virtual base class buy me extra that a fixed class doesn't ?
Feb 10, 2020 at 17:26 history answered gnasher729 CC BY-SA 4.0