Answers for "overloading meaning in java"

0

what is operator overloading in java

perator overloading is the ability to redefine the functionality of the operators. Programming languages like c++ supports operator overloading
Posted by: Guest on May-04-2021
1

exp on mathed overlading in java

class DisplayOverloading2
{
    public void disp(char c)
    {
        System.out.println(c);
    }
    public void disp(int c)
    {
       System.out.println(c );
    }
}

class Sample2
{
    public static void main(String args[])
    {
        DisplayOverloading2 obj = new DisplayOverloading2();
        obj.disp('a');
        obj.disp(5);
    }
}
Posted by: Guest on November-02-2020
0

java overload

int MyMethod(int x)
float MyMethod(float x)
double MyMethod(double x, double y)
Posted by: Guest on May-14-2021

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language