What will the following program display?
#include
using namespace std;
class Base
{
public:
Base() { cout << "Entering the base.\n"; }
~Base() { cout << "Leaving the base.\n"; }
};
class Camp : public Base
{
public:
Camp() { cout << "Entering the camp.\n"; }
~Camp() { cout << "Leaving the camp.\n"; }
};
int main()
{
Camp outpost;
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.