This week's book giveaway is in the Big Data forum.
We're giving away four copies of Elasticsearch in Action and have Radu Gheorghe & Matthew Lee Hinman on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Overloading methods Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Overloading methods" Watch "Overloading methods" New topic

Overloading methods

Vanessa Roach

Joined: Sep 13, 2008
Posts: 22
Is it possible to overload a method and return a value for a program using input to get it's values?
Campbell Ritchie

Joined: Oct 13, 2005
Posts: 41094
Difficult to understand your point, but I think the answer is yes. Have a look at the overloaded versions of Math class methods (eg abs), as an example.
Vanessa Roach

Joined: Sep 13, 2008
Posts: 22
ok. thank you I'll look
I agree. Here's the link:
subject: Overloading methods