Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

java

Class Overload{
	void show(){
		System.out.println("sum");
	}
	void show(int a){
		System.out.println("multiply");
	}
	public static void main(String args[]){
		Overload t = new overload();
		t.show();
		t.show(10);
	}
}
Source by artoftesting.com #
 
PREVIOUS NEXT
Tagged: #java
ADD COMMENT
Topic
Name
2+3 =