#include <iostream>
class A
{
};
class B : public A
{
public:
int i;
virtual void Func() = 0;
};
class C : public B
{
public:
char c;
void Func() {}
};
int main()
{
C* pC = new C;
A* pA = (A*)pC;
std::cout << std::boolalpha << (pC == pA);
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgoKY2xhc3MgQQp7Cn07CgpjbGFzcyBCIDogcHVibGljIEEKewpwdWJsaWM6CmludCBpOwp2aXJ0dWFsIHZvaWQgRnVuYygpID0gMDsKfTsKCmNsYXNzIEMgOiBwdWJsaWMgQgp7CnB1YmxpYzoKY2hhciBjOwp2b2lkIEZ1bmMoKSB7fQp9OwoKaW50IG1haW4oKQp7CkMqIHBDID0gbmV3IEM7CkEqIHBBID0gKEEqKXBDOwpzdGQ6OmNvdXQgPDwgc3RkOjpib29sYWxwaGEgPDwgKHBDID09IHBBKTsKcmV0dXJuIDA7Cn0=