Given the following class hierarchy:
class Class { ... };class Base : public Class { ... };class D1 : virtual public Base { ... };class D2 : virtual public Base { ... };class MI : public D1, public D2 { ... };class Final : public MI, public Class { ... };(a) In what order are constructors and destructors run on a Final object?
(b) A Final object has how many Base parts? How many Class parts?
(c) Which of the following assignments is a compile-time error?
Base *pb; Class *pc; MI *pmi; D2 *pd2;
(a) pb = new Class;
(b) pc = new Final;
(c) pmi = pb;
(d) pd2 = pmi;
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.