• Post Reply Bookmark Topic Watch Topic
  • New Topic

Overriding,Overloading methods  RSS feed

 
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 ]
 
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.
 
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?
 
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Overloading
 
a fool thinks himself to be wise, but a wise man knows himself to be a fool - shakespeare. foolish tiny ad:
The WEB SERVICES and JAX-RS Course
https://coderanch.com/t/690789/WEB-SERVICES-JAX-RS
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!