I was reading through some of effective c++ and I realized I may be incorrect in my thinking along the way.
class A { public: void laka() { c
This is all compiler and implementation dependent. In your case a B is a A + something, so it sotres the A then the B specific members. so the address of &b and the one displayed by your dynamic_cast ought to be the same.