Sorry about all this confusion.
I try to state the question from the book again, regarding the code from post 1:
Which statements about the program [upper code] are true?
...
(b) The code defines a Planet is-a Star relationship.
...
I thought, yeah sure, BUT, and here came my confusion, the solution (from the book) said to me: NOPE this is wrong.
And I began to think (
); always bad. After I've written my upper post I found the error list to the book (
Errata Link).
So in the end, of course (
) statement (b) is true.
@Bob,
I feel what you are talking about refers to polymorphism.According to me the given is correct.
Yep. That's right. Mughal/Rasmussen are wrong, we are right !!!
Sorry again about that confusion again
Bob