Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
The moose likes Beginning Java and the fly likes Overriding,Overloading methods Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Overriding,Overloading methods" Watch "Overriding,Overloading methods" New topic

Overriding,Overloading methods

Frank White

Joined: Mar 01, 2008
Posts: 7
I'm new to java, and I have a question. If I have the following:

I'm reading this book and i'm getting confused. Which is the overridding method(s) and overloading method(s), and what is the difference. How is this different from an overloaded constructer?

Thank you,

Edit by mw: Added Code Tags to preserve formatting of diagram.
[ March 05, 2008: Message edited by: marc weber ]
Jeremy Wilson
Ranch Hand

Joined: Feb 18, 2003
Posts: 166
In this scenario there is overridden methods. All are overloaded.

Jeremy Wilson
marc weber

Joined: Aug 31, 2004
Posts: 11343


Welcome to JavaRanch! Please check your private messages by clicking on My Private Messages. Thanks!

"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
marc weber

Joined: Aug 31, 2004
Posts: 11343

I'm confused by your diagram. This is similar to something described in Thinking in Java under the topic, Is-a vs. is-like-a relationships. Is this the example that you're working from? Or is there a more detailed version?
Amir Pourteymour
Ranch Hand

Joined: Mar 06, 2008
Posts: 45
I agree. Here's the link:
subject: Overriding,Overloading methods
It's not a secret anymore!