C++ Language Elements
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
pCat = new Animal;
compile?
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.