InterviewSolution
Saved Bookmarks
| 1. |
class x{int a;public :x() {}};class y{ x x1;public : y(){} };class z : public y, x{ intb;public:z(){}} z1;What is the order of constructor for object z1 to be invoked?(a) z, y, x, x(b) x, y, z, x (c) y, x, x, z (d) x, y, z |
|
Answer» (c) y, x, x, z |
|