On page 107 of Sierra and Bates study guide there is written, that the comand in line 4 is "not legal because Horse didn't inherit eat()".
For me, everything is fine. When I am running the code, on the console is written:
That's the code:
I think, the authors expected an error messaage. Is there an error in the book or in my code?