Timeline for How to handle subclasses needing different method signatures for the overriden function?
Current License: CC BY-SA 4.0
2 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Aug 16, 2022 at 15:32 | comment | added | Yoh | Technically I can make it check if the move is valid in the client and make move() have only a single responsibility, but this defeats abstraction doesn't it? If we want to make one entry point to the system then we will have a method that will do more than one thing, is there a way to make it truly single responsibility? | |
| Aug 15, 2022 at 12:28 | history | answered | gnasher729 | CC BY-SA 4.0 |