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



Ask a Question

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 ans is good.now i cleared my dout.and the exam
View Tutorial          By: siva at 2011-12-07 14:00:13

2. Hi mounika, Did you download and install the javac
View Tutorial          By: Ramlak at 2008-04-27 05:49:42

3. Hi All........
People those who are ge

View Tutorial          By: Abhijit at 2013-05-28 11:24:24

4. Nice example..i m working on android and i want to
View Tutorial          By: Pranav at 2012-04-25 07:00:48

5. what are the required equipments to run j2me
View Tutorial          By: messi at 2012-11-13 13:15:18

6. Sir,
i am implementing the above code in w

View Tutorial          By: Rahul Singh at 2009-09-01 04:23:25

7. DOBN'T USE THIS SHIT
IT IS STRONGLY DISCOUR

View Tutorial          By: DD at 2011-09-13 13:00:30

8. I think the programmer overlooked that "this
View Tutorial          By: Joe Schmoe at 2010-10-16 00:01:27

9. This article helped me a lot to learn struts 2 and
View Tutorial          By: Shiv Prakash at 2012-12-07 07:37:35

10. Dude, that LOOP wont work i cant even understand w
View Tutorial          By: Rohan at 2012-02-16 17:04:06