Here is the code:
In line "Animal a1 = d;" my understanding is it's a
polymorphism, because d is a newly declared dog, and a1 is assigned to be it. But in the guide book, it says this line is an implicit upcasting. What's wrong with my uderstanding?
Thanks.