Advertisements
Advertisements
Question
In what way method overloading is advantageous?
Short Answer
Solution
During program compilation, the compiler selects the most appropriate method arguments and parameter lists based on the quantity and type of parameters. This behaviour is referred to as early binding or static binding.
shaalaa.com
Is there an error in this question or solution?
Chapter 5: User - Defined Methods - EXERCISES [Page 337]