What is the output #include <iostream> class Base
{
public:
Base ( )
{
cout << "5" << endl;
}
~Base ( )
{
cout << "9" << endl;
}
};
class Derived : public Base
{
public:
Derived ( )
{
cout << "1" << endl;
}
~Derived ( )
{
cout << "8" << endl;
}
};
int main( )
{
Derived x;
}