Chapter 15: Problem 17
Suppose that the classes Dog and cat derive from Animal, which in turn derives from Creature. Suppose further that pDog, pCat, pAnimal, and pCreature are pointers to the respective classes. Suppose that Animal and creature are both abstract classes. Rewrite the following two statements to get them to compile correctly. \\[ \begin{array}{l} \text { pAnimal = new Dog; } \\ \text { pDog = pAnimal; } \end{array} \\]
Short Answer
Step by step solution
Key Concepts
These are the key concepts you need to understand to accurately answer the question.