What will the following program display?
#include <iostream>using namespace std;class Sky{public: Sky() { cout ≪ "Entering the sky.\n"; } ~Sky() { cout ≪ "Leaving the sky.\n"; }};class Ground: public Sky{public: Ground() { cout ≪ "Entering the Ground.\n"; } ~Ground() { cout ≪ "Leaving the Ground.\n"; }};int main(){ Ground object; 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.