What will the following program display?
#include
using namespace std;class Sky{public: Sky() { cout ≪ "Entering the sky.\n"; } Sky(string color) { cout ≪ "The sky is " ≪ color ≪ endl; } ~Sky() { cout ≪ "Leaving the sky.\n"; }};class Ground: public Sky{public: Ground() { cout ≪ "Entering the Ground.\n"; } Ground(string c1, string c2): Sky(c1) { cout ≪ "The ground is " ≪ c2 ≪ endl; } ~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.