#include <iostream>
using namespace std;
class A {
public:
A(int v) :
value(v)
{
}
int value = 0;
};
class B : public A {
public:
B() : A(1) {
cout << "value = " << value << endl;
}
};
int main() {
A* obj = new B();
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKCmNsYXNzIEEgewpwdWJsaWM6CglBKGludCB2KSA6CgkJdmFsdWUodikKCXsKCgl9CgkKCWludCB2YWx1ZSA9IDA7Cn07CgpjbGFzcyBCIDogcHVibGljIEEgewpwdWJsaWM6CglCKCkgOiBBKDEpIHsKCQljb3V0IDw8ICJ2YWx1ZSA9ICIgPDwgdmFsdWUgPDwgZW5kbDsKCX0KfTsKCmludCBtYWluKCkgewoJQSogb2JqID0gbmV3IEIoKTsKCXJldHVybiAwOwp9