Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Overriding,Overloading methods

 
Frank White
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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,
Moonjuice


Edit by mw: Added Code Tags to preserve formatting of diagram.
[ March 05, 2008: Message edited by: marc weber ]
 
Jeremy Wilson
Ranch Hand
Posts: 166
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In this scenario there is overridden methods. All are overloaded.
 
marc weber
Sheriff
Posts: 11343
Java Mac Safari
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Moonjuice,"

Welcome to JavaRanch! Please check your private messages by clicking on My Private Messages. Thanks!
 
marc weber
Sheriff
Posts: 11343
Java Mac Safari
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Overloading
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic