Originally posted by dick kromkamp:
That's not true,
I only posted a part of the code on page18.
The fly() methods etc are in the FlyBehavier and QuickBehavier.
Anyone can help who had read this book?
[ September 28, 2008: Message edited by: dick kromkamp ]
[ September 28, 2008: Message edited by: dick kromkamp ]
So if fly() is part of the FlyBehavior object, how do you think you should call the fly() method from that object? As a hint, the code you posted IS NOT the code that is on page 18 of the book. You screwed up copying it. Can you see where? If you had a solid knowledge of Java Basics, as has previously been suggested, you should have been able to see the error right away.
[ September 28, 2008: Message edited by: Steve Luke ]