In this example, we have created two methods that differs in data type. The first add method receives two integer arguments and second add method receives two double arguments.
Output: