re: Why Java Interfaces Are Terrible VIEW POST

FULL DISCUSSION
 

You have hard coded the implementation types. Code to the interfaces of those types and you can then pass in any concrete type that implements the interface. If that doesn't make sense, I will try to clarify. Good luck!

code of conduct - report abuse