Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I am so, so excited for Default Interface Implementations. Abstract classes are great but when you want (have) to go down a different inheritance tree this will be so nice.


With the introduction of this feature, is that the only difference between the two?


Abstract classes can have state, default interfaces can only have behavior. So state is still single-inheritance, while behavior is effectively multiple-inheritance now.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: