What is method overloading?
Are you preparing for IT certification? With practice questions, study notes, interactive quizzes, tips and technical articles, uCertify PrepKits ensure that you get a solid grasp of core technical concepts to ace your certification exam in first attempt.
What is method overloading?
Rating:
Method overloading is a concept that allows the creation of several methods with the same name which differ from each other in terms of the type of the input and the type of the output of the function (for example, a square method, which takes a number and returns the square of that number). It is often necessary to create different functions for integer and floating point numbers. While overloading a method, we are really just making a number of different methods that happen to have the same name.
Copyright © 2009-2010 Wikipedia. All rights reserved.
Rating:
Was this information helpful?
Other articles
- What is the floorKey(k) method of the NavigableMap interface?
- What is the import statement?
- What is a top-level class?
- What is multiplicity?
- What is the Vector class?