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. Hi Steven. It looks like your example program does
View Tutorial          By: Ben Hallinan at 2008-04-25 08:36:42

2. Hi, I need the complete working code for sending a
View Tutorial          By: Balaji Srikaanth at 2007-03-10 01:22:35

3. Thanks,It worked.I tried with Microsoft Visual C++
View Tutorial          By: gaurav at 2013-12-04 08:27:35

4. I am using my NOKIA 2700 classic via blutooth conn
View Tutorial          By: Raheela at 2010-05-06 03:11:36

5. please give me more information
View Tutorial          By: nandhini at 2012-09-22 03:49:11

6. hi all,

i successfully executed the

View Tutorial          By: praveen at 2010-07-14 04:47:41

7. Hi thanks for your information.

I g

View Tutorial          By: karthikeyan at 2009-09-18 04:50:37

8. Can anyone post the steps to implement everything
View Tutorial          By: Matt at 2010-04-29 14:47:11

9. sir, could you please tell me about minimum and ma
View Tutorial          By: priya dwivedi at 2012-01-04 15:01:03

10. Hi,

I tried use this code:
<

View Tutorial          By: Yanosh at 2009-07-16 05:19:38