Comment on Tutorial - Method Overloading (function overloading) in Java By Abinaya



Comment Added by : Mrammaji

Comment Added at : 2011-09-26 08:11:47

Comment on Tutorial : Method Overloading (function overloading) in Java By Abinaya
Wonderful stuff. It can't be put any simpler. The awesome thing is that 3 years after you posted it and and here I am learning from you. It can't be put ny simpler. I hope you are rich and having a very happy life by now.

I believe substituting "int" for "double" is possible everywhere, not only in method overloading. For instance you can have an double parameter for an int meothd, e.g.
int iSayHello(double w){
return 10;
}

The logic is that all integers are doubles. Similarly, all integers are float, etc.

Cheers,


View Tutorial



Subscribe to Tutorials

Related Tutorials

Program using concept of byte long short and int in java

Update contents of a file within a jar file

Tomcat and httpd configured in port 8080 and 80

Java File

Java String

Count number of vowels, consonants and digits in a String in Java

Reverse a number in Java

Student marks calculation program in Java

Handling Fractions in Java

Calculate gross salary in Java

Calculate average sale of the week in Java

Vector in Java - Sample Program

MultiLevel Inheritance sample in Java

Multiple Inheritance sample in Java

Java program using Method Overriding

Archived Comments

1. give some good examples very bad i dont lke dis ex
View Tutorial          By: abinaya banu at 2014-07-14 06:04:28

2. hi,
Very nice tutorial. But please I have s

View Tutorial          By: hemn at 2010-04-17 06:02:00

3. Excellent article
View Tutorial          By: JJ at 2011-03-21 13:42:35

4. setListAdapter(new ArrayAdapter<String>(

View Tutorial          By: Mark at 2013-02-02 02:25:42

5. Works thnx :D :D :D :D
View Tutorial          By: nik at 2014-11-09 20:44:29

6. This is really a tremendous tutorials for the begi
View Tutorial          By: Raghvendra Dwivedi at 2010-09-01 10:22:42

7. import java.util.Scanner;
public class Swit

View Tutorial          By: srinath at 2013-04-28 10:17:24

8. If i run this program----



View Tutorial          By: pratham at 2010-09-22 10:10:11

9. hi,am working on this project..sending SMS from P
View Tutorial          By: rajesh at 2008-12-10 00:16:10

10. sir... i made a program just like that ... but the
View Tutorial          By: David at 2010-07-08 03:34:13