Chapter 15: Problem 14
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. Will the statement pAnimal \(=\) new Cat compile?
Short Answer
Step by step solution
Key Concepts
These are the key concepts you need to understand to accurately answer the question.