2 ms·
I disagree: - virtual / none virtual functions - virtual / non virtual inheritance - pointers and references - templates I have to say that multiple inheritan
by richardwhiuk 13y ago
I disagree:
- virtual / none virtual functions
- virtual / non virtual inheritance
- pointers and references
- templates
I have to say that multiple inheritance normally means you are using the wrong design pattern, and you should be doing composition instead.
- nly 13y agoAll functions in Java are virtual, C++ just lets you make the performance trade-off. Virtual inheritance is only useful in a few cases in complex inheritance hierarchies, and most never need to know it exists. The other 2 aspects of C++ are nothing to do with the object model.