Computer Science, asked by vinodkumarankha1971, 9 months ago

any body tell ne one example of funtion overloading program in java​

Answers

Answered by vidhutraushan
1

Explanation:

class OverloadingCalculation1{

class OverloadingCalculation1{void sum(int a,long b){System.out.println(a+b);}

class OverloadingCalculation1{void sum(int a,long b){System.out.println(a+b);}void sum(int a,int b,int c){System.out.println(a+b+c);}

class OverloadingCalculation1{void sum(int a,long b){System.out.println(a+b);}void sum(int a,int b,int c){System.out.println(a+b+c);}public static void main(String args[]){

class OverloadingCalculation1{void sum(int a,long b){System.out.println(a+b);}void sum(int a,int b,int c){System.out.println(a+b+c);}public static void main(String args[]){OverloadingCalculation1 obj=new OverloadingCalculation1();

Similar questions