Diagram://ww w. j a v a 2 s .c o m Animal | Mammal | +----------------+------+--------+----------------+ | | | | Cat Raccoon Fish Dog (implements (implements Washer) Washer)
Consider the following code:
1. Cat myCat;
2. Washer myObject;
3. Fish pogo;
4.
5. myCat = new Cat();
6. myObject = myCat;
7. pogo = (Fish)myObject;
Which of the following statements is true? (Choose one.)
myObject
cannot be converted to type Fish. E.
The cast in line 7 is required.
Answer D is a preposterous statement expressed in a tone of authority.