Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

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");
	}
Source by javabeginnerstutorial.com #
 
PREVIOUS NEXT
Tagged: #access #modifier #overloaded #method
ADD COMMENT
Topic
Name
1+3 =