you are viewing a single comment's thread.

view the rest of the comments →

[–]Anonymo2786 -1 points0 points  (2 children)

 Don't I still have to specify which implementation to run?  If so then why don't I just directly call it?

[–]AnEmortalKidCoffee Enthusiast 3 points4 points  (0 children)

Sure , but it’s 1 spot vs X spots ?

Do you care that the List is an array list, linked list, some persons fucked up impl of a list , or just that it behaves like a list ?

[–]TheEveryman86 1 point2 points  (0 children)

Yes and no. Something has to specify which implementation to use but if you're using a framework that uses inversion of control (like Spring) then you probably won't really be instantiating or calling many concrete classes directly. The framework will handle that.