2 ms·
In OOP polymorphism is the way. In functional programming, if you have exhaustive pattern matching, then that is the best answer. Given that the examples are in
by tigershark 8y ago
In OOP polymorphism is the way.
In functional programming, if you have exhaustive pattern matching, then that is the best answer.
Given that the examples are in Java 8 I would use without doubt polymorphism.