11.07.2015 Views

tYSR20

tYSR20

tYSR20

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 26: Inheriting Multiple Inheritance 345Imagine my dismay when I find that this doesn’t help at all — the reference toweight in Section 1 of main() is still ambiguous. (I wish my weight were asambiguous!) “Okay,” I say (not really understanding why weight is still ambiguous),“I’ll try casting ss to a Furniture.”#include void fn(){SleeperSofa ss;Furniture* pF;pF = (Furniture*)&ss; // use a Furniture pointer...cout

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

Saved successfully!

Ooh no, something went wrong!