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)
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 thatinterfaces are bad and everyone should use abstractclasses instead)