6th Day @ Noida: Overloading

Hi Readers! I have come to know how we overload the functions in Java.
I will share the concept of that.

Overloading in Java
Overloading allows different methods to have the same name, but different signatures where a signature can differ by a number of input parameters or type of input parameters or both. Overloading is related to compile time (or static) polymorphism.

Image result for overloading in java

Method Overloading is a feature that allows a class to have more than one method having the same name, if their argument lists are different. It is similar to constructor overloading in Java, that allows a class to have more than one constructor having different argument lists.

let’s get back to the point, when I say argument list it means the parameters that a method has: For example the argument list of a method add(int a, int b) having two parameters is different from the argument list of the method add(int a, int b, int c) having three parameters.

Comments

Popular posts from this blog

How to add Internet download manager extension in the Chrome browser

A Day in Noida: Learning Begins

Python Deciding factor