1.

What is the output of this program?
#include <iostream>
using namespace std;
class BaseClass
{
public:
BaseClass( )
{
cout << "I ";
}
~BaseClass ( )
{
cout << " Mania";
}
};
class DerivedClass : public BaseClass
{
public:
DerivedClass ( )
{
cout << "Love ";
}
~DerivedClass ( )
{
cout << "Interview";
}
};
int main( )
{
DerivedClass x;
}

A. I
B. Love
C. Interview
D. Mania
E. I Love Interview Mania
Answer» F.


Discussion

No Comment Found

Related MCQs