Chapter 15: Problem 14
Will the statement pAnimal = new Cat: compile?
Short Answer
Expert verified
Answer: Yes, the statement "pAnimal = new Cat;" will compile without any errors, given that Cat is a subclass of Animal.