Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP 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
Pie
Posts: 49733
69
  • 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