Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

Method Overloading in java

public class Multi{ //Super class
public void multi(String name){ //String parameter
………………
}
}
 
Public class Multiplication extends Multi(){
Public void multi(){//No Parameter
………..
}
Public void multi(int x){ //integer parameter
 
}
Public static void main(String args[]){
Multiplication multiplication = new Multiplication();
multiplication.multi();
}
}
Source by softhunt.net #
 
PREVIOUS NEXT
Tagged: #Method #Overloading #java
ADD COMMENT
Topic
Name
4+4 =