Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Overloading methods

 
Vanessa Roach
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is it possible to overload a method and return a value for a program using input to get it's values?
 
Campbell Ritchie
Sheriff
Posts: 48917
58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ok. thank you I'll look
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic