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. It is a good tutorial but I think the "Instru
View Tutorial          By: Jaypee at 2010-10-10 22:40:50

2. it is very easy to understand to the learners.
View Tutorial          By: venkat at 2010-06-19 02:37:36

3. hi, srinivas ... i too was having the same problem
View Tutorial          By: Ashish at 2009-04-07 06:57:31

4. hi guys.
i have downloaded the code for sen

View Tutorial          By: Tabrez Ansari at 2012-09-13 11:03:46

5. Can anybody help me to send the code for email sen
View Tutorial          By: satendra at 2010-03-23 02:46:18

6. because equals method compares on object reference
View Tutorial          By: mohit s. at 2011-12-24 06:29:35

7. Very helpful and easily understandable!
View Tutorial          By: Teerna at 2014-11-12 23:55:49

8. Really appreciate, after a long time, I am able to
View Tutorial          By: Senthil at 2012-09-16 06:03:15

9. Hello,
this is good example, but that is on

View Tutorial          By: Zubair at 2011-11-10 20:46:39

10. i need some simple java programs
View Tutorial          By: ramya at 2009-11-24 04:25:07