Answers for "access modifier overloaded method"

0

access modifier overloaded method

//Overloaded method with one argument
	public void add(int input1, int input2) {
		System.out.println("In method with two argument");
	}

        //Overloaded method with one argument
	public void add(int input1) {
		System.out.println("In method with one argument");
	}
Posted by: Guest on May-29-2021
0

can overloaded methods have different access modifiers

yes they can have different access modifiers
Posted by: Guest on January-12-2021

Code answers related to "access modifier overloaded method"

Browse Popular Code Answers by Language