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

The biggest difference are

1. A class can be composed out of multiple interfaces, making them more like mixins/traits etc vs inheritance, which is always a singular class

2. The implementation is flat and you do not have a tree of inheritance - which was what this discussion was about. This obviously comes with the caveat that you don't combine them, which would effectively make it inheritance again.



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

Search: