What will the following program display on the screen?
#include <iostream>using namespace std;class Package{private: int value;public: Package() {value = 7; cout ≪ value ≪ endl;} Package(int v) {value = v; cout ≪ value ≪ endl;} ~Package() {cout ≪ value ≪ endl;}};int main(){ Package obj1(4); Package obj2(); Package obj3(2);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.