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. The SAX Parser code has a problem for files of gre
View Tutorial          By: Mark Nelson at 2011-11-14 20:16:41

2. sir,
When I run the above code and give 6 o

View Tutorial          By: nishant at 2012-07-01 17:11:20

3. Great one on java-xml binding..
View Tutorial          By: Ranadeep Roy at 2008-07-03 23:15:22

4. very good to use
View Tutorial          By: baby at 2013-06-14 12:08:14

5. Thanks so much for the tutorial!! Was extremely us
View Tutorial          By: Debarupa at 2012-05-10 20:23:28

6. Please help .... I can't access this code. so any
View Tutorial          By: Sonu Kumar at 2014-02-26 11:31:08

7. hello everyone... I am getting the error "sms
View Tutorial          By: umar at 2010-12-19 04:20:33

8. unzip jquery-ui-1.10.3.custom

and c

View Tutorial          By: ajmal at 2013-06-06 10:44:55

9. Its a peshak site
View Tutorial          By: SANIJ at 2010-01-06 22:40:31

10. I like your linked list program. i've one doubt di
View Tutorial          By: silambarasan at 2013-01-25 03:11:48