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

One could say toolkits done in C++ use multiple inheritance because C++ doesn't have interfaces though.




This is a good point. It would be better for me to say pure abstract base classes... that simulate interfaces in C++. That said, I can say from experience that Qt does more than multi-inheritance with pure abstract base classes. I think the QPainter class is mixed into a few places, and that class is fuckin' major -- it is responsible to paint every (cross platform) pixel in the whole framework.



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

Search: