11.07.2015 Views

tYSR20

tYSR20

tYSR20

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

350Part V: Optional FeaturesI suggest that you avoid using multiple inheritance until you’re comfortablewith C++. Single inheritance provides enough expressive power to get usedto. Later, you can study the manuals until you’re sure that you understandexactly what’s going on when you use multiple inheritance. One exception isthe use of commercial libraries such as Microsoft’s Foundation Classes(MFC), which use multiple inheritance quite a bit. These classes have beenchecked out and are safe.Don’t get me wrong. I’m not out and out against multiple inheritance. The factthat Microsoft and others use multiple inheritance effectively in their classlibraries proves that it can be done. However, multiple inheritance is a featurethat you want to hold off on using until you’re ready for it.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!