#include <iostream>
using namespace std;
class Tree
{
public:
float Size;
int height;
void Show(float Size, int height)
{
cout<<" the size is "<<Size<<" the height is"<<height<<endl;
};
};
class Oak : public Tree {
public:
int rings;
void Age(int rings)
{
cout<<" the age is "<<rings<<endl;
}
};
int main()
{
Tree x;
x.Show(2.2, 5);
Oak y;
y.Show(3.8, 8);
y.Age(6);
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwpjbGFzcyBUcmVlCnsKcHVibGljOgogICAgZmxvYXQgU2l6ZTsKICAgIGludCBoZWlnaHQ7ICAgICAgICAgICAgICAgICAgICAgCiAgICB2b2lkIFNob3coZmxvYXQgU2l6ZSwgaW50IGhlaWdodCkKICAgIHsKICAgIAljb3V0PDwiIHRoZSBzaXplIGlzICI8PFNpemU8PCIgdGhlIGhlaWdodCBpcyI8PGhlaWdodDw8ZW5kbDsKICAgIH07CiAgICAgICAgICAKfTsKCmNsYXNzIE9hayA6IHB1YmxpYyBUcmVlIHsKICAgIHB1YmxpYzoKICAgIAogICAgaW50IHJpbmdzOyAKICAgICB2b2lkIEFnZShpbnQgcmluZ3MpCiAgICB7CiAgICAJY291dDw8IiB0aGUgYWdlIGlzICI8PHJpbmdzPDxlbmRsOwkKICAgIH0KICAgICAgICAgICAgICAgCiAgIH07CiAgIAogaW50IG1haW4oKQp7CiAgVHJlZSB4OwogIHguU2hvdygyLjIsIDUpOwogIE9hayB5OwogIHkuU2hvdygzLjgsIDgpOwogIHkuQWdlKDYpOwogIAogIAogIHJldHVybiAwOwp9CgoK