Given the classes from page 612 and page 613, and assuming each object has the type specified in the comments, determine which of these assignments are legal. Explain why those that are illegal aren’t allowed:
Base *p = &d1; // d1 has type Pub_Dervp = &d2; // d2 has type Priv_Dervp = &d3; // d3 has type Prot_Dervp = &dd1; // dd1 has type Derived_from_Publicp = &dd2; // dd2 has type Derived_from_Privatep = &dd3; // dd3 has type Derived_from_Protected
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.