Functions in Java Lesson 6 New
Functions in Java Lesson 6 New
Learning Intention
Function overloading is a feature in Object Oriented Programming
languages that is used to reduce complexity and increase the efficiency
of the program.
In big programs there can be several tasks that are somewhat similar
but not same. These tasks are ideally placed inside separate methods
to make the code more organized and manageable. But keeping track
of such methods and their parameters is a challenging task for a
programmer.
Disadvantages:
It is the responsibility of the programmer to invoke the
appropriate method with the appropriate data types. The
programmer may have to choose the appropriate method
based on the data types using “if” constructs or “switch”
constructs.
In a big program, keeping track of the methods and their
parameters is a challenging task for a programmer.
https://forms.office.com/