I wonder is there is anything wrong conceptually w...
# announcements
d
I wonder is there is anything wrong conceptually with using interface with default methods as opposed to using an abstract class, given that I don't care about constructors and states?
r
If you can do what you want this way, then just do. Usually you need abstract classes because they contain private functions, properties and as you said, constructors
If what you’re doing works just with default implementations in interfaces then it should be safe. Using interfaces instead of abstract classes kinda allows multiple inheritance
1
👍 1
d
oh yeah that one of the good reasons I was looking for actually, thanks
r
Well that’s if you think multiple inheritance is a good thing 😛
a
Also if you're using the interface for "easier" re-use of utility like methods then obv. don't do that
d
obviously