switch/case
statement the same way each time; but the base classes do enforce that concrete classes have all abstract methods implemented.https://moderatemisbehaviour.github.io/clean-code-smells-and-heuristics/#g23-prefer-polymorphism-to-if-else-or-switch-case
No comments:
Post a Comment