This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Method Overriding with Object Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Method Overriding with Object" Watch "Method Overriding with Object" New topic

Method Overriding with Object

Srinivas Palam
Ranch Hand

Joined: Oct 20, 2005
Posts: 66
According to the scjp6 book, red colored line should disply Animal, but I am geeting complie error. Please help.

D:\Java>javac useAnimals(Horse) in UseAnimals cannot be applied to (Animal
1 error


Togaf Part 1 and 2
Paul Clapham

Joined: Oct 14, 2005
Posts: 19719

I expect that's because you misspelled the method name in line 6 of your posted code.
Srinivas Palam
Ranch Hand

Joined: Oct 20, 2005
Posts: 66
Thank You.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: Method Overriding with Object
It's not a secret anymore!