Menu

[solved]-Tired Using Code Screen Kept Getting Main Error Sofware Using Java Quite Sure Fix Help Ne Q39066118

6- On AF add we pass the argument type string, type string => [Abc, Xyz] On second AF.add we pass argrument type int, type ini tired using the code in thescreen but kept getting a no main error. sofware i am using isJava. i am not quite sure on how to fix it. help needed

6- On AF add we pass the argument type string, type string => [Abc, Xyz] On second AF.add we pass argrument type int, type int => [10.20] The compiler detect which AF.add is int and which one is String public class CallOver Loading public static void main(String[] argo OverLoading AF = new OverLoadingo. System out.println(AF.add(“Abc”, “Xyz”)) System.out.println(AF.add(10,20)) public class OverLoading String stil, str2; int numl, muun 2; public int add(int muni, int nun2) int summum + num2; retun suun; public String add (String stl String st2) String combined = strl + st12: Tetun combined public String add (String stul, int num3) String combined = stil + num3; retun combined; Show transcribed image text 6- On AF add we pass the argument type string, type string => [Abc, Xyz] On second AF.add we pass argrument type int, type int => [10.20] The compiler detect which AF.add is int and which one is String public class CallOver Loading public static void main(String[] argo OverLoading AF = new OverLoadingo. System out.println(AF.add(“Abc”, “Xyz”)) System.out.println(AF.add(10,20)) public class OverLoading String stil, str2; int numl, muun 2; public int add(int muni, int nun2) int summum + num2; retun suun; public String add (String stl String st2) String combined = strl + st12: Tetun combined public String add (String stul, int num3) String combined = stil + num3; retun combined;

Expert Answer


Answer to i tired using the code in the screen but kept getting a no main error. sofware i am using is Java. i am not quite sure o… . . .

OR


Leave a Reply

Your email address will not be published. Required fields are marked *