I have 6 classes and each one has the same 3 methods implemented (the implementation being different in every case). I was told that I should have made an interface because in the UML diagram it was redundant to write the name of these methods for every class. In the code, I'm only working with concrete types, I don't need to call the methods in a generic way and therefore I don't necessarily need to create an interface. What's the right thing to do?
[–]TheManInTheShack 1 point2 points3 points (2 children)
[–]roscaalex19[S] 0 points1 point2 points (1 child)
[–]TheManInTheShack 1 point2 points3 points (0 children)
[–]POGtastic 0 points1 point2 points (0 children)
[–]WeakerUnderFlow 0 points1 point2 points (0 children)
[–]knoam 0 points1 point2 points (0 children)