What will the following program display?
#include
#include
using namespace std;
class Base
{
public:
Base(){cout << "Entering the base.\n";}
Base(string str)
{
cout << "This base is " << str << ".\n";
}
~Base() {cout << "Leaving the base.\n";}
};
class Camp : public Base
{
public:
Camp(){cout << "Entering the camp.\n";}
Camp(string str1, string str2) : Base(str1)
{
cout << "The camp is " << str2 << ".\n";
}
};
int main()
{
Camp outpost("secure", "secluded");
return 0;
}
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.