4.12 Method overload
Hello, welcome to this new course which will be dedicated to the overloading of the methods it is very commonly used in java and also in other programming languages and at the end of this course you will be able to define the overloading of a method its advantages these types of overloading and create the example yourself Let's start with the definition of method overloading and a concept that allows a class to have several methods with the same name but different parameters To understand let's take an example Let's have a person named is called richard Anthony and another person who has the same name and surname i.e. richard Anthony but they have different characteristics like the country, the color and their height... So we say who has the same name but different parameters Among the advantages there is the flexibility, a method overloaded methods give the flexibility to call a similar method for different data types. If you are working on a math program, for example, you can use overloading to create several multiply methods, each of which multiplies a different parameter type There can be integers in parameter or It also increases the readability of the program and can also be implemented on constructors. Implemented on constructors we will talk about this in the next courses Now that we have seen what the overloading of the methods consists of, we can our IDE to set up some examples to understand the types of overloading and then we will then we will carry out some challenges