how does c++ multiple inheritance casting work?
问题 This question helped me to understand a bit, but my question is slightly different from theirs. Basic typecasting as I understand it in c++ involves reinterpreting a structure in memory, as a different structure. For example: class Building{int sqFootage;}; class Office : public Building{int cubicles;}; int main(int argc, char** argv){ Office *foo = new Office(); /*The cubicles member appears after the sqFootage member on an Office, * so the foo pointer is really just a Building* with some