r/programming • • Mar 09 '16

var keyword proposed for Java

http://openjdk.java.net/jeps/286
250 Upvotes

395 comments sorted by

View all comments

Show parent comments

1

u/[deleted] Mar 09 '16

[removed] — view removed comment

1

u/immibis Mar 10 '16

However, interfaces let you have multiple implementations that can all be in use at the same time. They also allow the compiler to yell at you if you forget to implement a method.

(This applies to abstract classes too, of course. I hope you were saying that both are bad, not that interfaces are bad and everyone should use abstract classes instead)