3 ms·
One could say toolkits done in C++ use multiple inheritance because C++ doesn't have interfaces though.
by nottorp 11mo ago
One could say toolkits done in C++ use multiple inheritance because C++ doesn't have interfaces though.
- throwaway2037 11mo agoThis 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.