This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan 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 Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Overloading methods" Watch "Overloading methods" New topic
Author

Overloading methods

Vanessa Roach
Greenhorn

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
Sheriff

Joined: Oct 13, 2005
Posts: 38025
    
  22
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
Greenhorn

Joined: Sep 13, 2008
Posts: 22
ok. thank you I'll look
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Overloading methods
 
Similar Threads
overlading
request.getSession() vs request.getSession(boolean create)
method overriding
Function Overloading
java [question -- overloading]