#include <iostream>
class PureAbstract {
public:
virtual void method() = 0;
};
void PureAbstract::method() { std::cout << "Hi from abstract\n"; }
class Derived : public PureAbstract {
public:
virtual void method() { PureAbstract::method(); }
};
int main() {
Derived d;
d.method();
}
I2luY2x1ZGUgPGlvc3RyZWFtPgpjbGFzcyBQdXJlQWJzdHJhY3QgewogcHVibGljOgogICAgdmlydHVhbCB2b2lkIG1ldGhvZCgpID0gMDsKfTsKdm9pZCBQdXJlQWJzdHJhY3Q6Om1ldGhvZCgpIHsgc3RkOjpjb3V0IDw8ICJIaSBmcm9tIGFic3RyYWN0XG4iOyB9CgpjbGFzcyBEZXJpdmVkIDogcHVibGljIFB1cmVBYnN0cmFjdCB7CiBwdWJsaWM6CiAgICB2aXJ0dWFsIHZvaWQgbWV0aG9kKCkgeyBQdXJlQWJzdHJhY3Q6Om1ldGhvZCgpOyB9Cn07CgppbnQgbWFpbigpIHsKICAgIERlcml2ZWQgZDsKICAgIGQubWV0aG9kKCk7Cn0=