Code:
#include class myc { int dummy; public: int si(){return sizeof(*this);} }; class d_myc : public myc { int d_dummy; }; int mai
sizeof is resolved at compile-time, not run-time. So sizeof(*this) is equivalent to sizeof(myc).
sizeof
sizeof(*this)
sizeof(myc)