#include <iostream>
using namespace std;
class Blob
{
public:
virtual void Echo() { cout << "timeless" << endl; }
};
class Splat: public Blob
{
public:
int age;
Splat(int init): age(init) {}
void Echo() { cout << age << endl; }
};
int main()
{
Splat s(15);
Blob* b;
b = &s;
b->Echo();
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgoKdXNpbmcgbmFtZXNwYWNlIHN0ZDsKCmNsYXNzIEJsb2IKewogICAgcHVibGljOgogICAgdmlydHVhbCB2b2lkIEVjaG8oKSB7IGNvdXQgPDwgInRpbWVsZXNzIiA8PCBlbmRsOyB9Cn07CgpjbGFzcyBTcGxhdDogcHVibGljIEJsb2IKewogICAgcHVibGljOgogICAgaW50IGFnZTsKICAgIFNwbGF0KGludCBpbml0KTogYWdlKGluaXQpIHt9CiAgICB2b2lkIEVjaG8oKSB7IGNvdXQgPDwgYWdlIDw8IGVuZGw7IH0KfTsKCmludCBtYWluKCkKewogICBTcGxhdCBzKDE1KTsKICAgQmxvYiogYjsKICAgYiA9ICZzOwogICBiLT5FY2hvKCk7CiAgIHJldHVybiAwOwp9Cg==