Hey Ravi,
you can overload the method with a signature Firstfunc(long a, long b, long c).
Originally posted by ravi chan:
And also a thing to note is you cannot change the overloaded declaration to float Firstfunc(long a, long b, long c)
will give you a compiler error if your method call is Firstfunc(1, 2, 3) because the compiler gets confused about both the overloaded methods.
[/B]
Compiler will not get confused, cause Firstfunc(1, 2, 3) can be uniquely identified. 1, 2, 3 are ints, so he will call the Firstfunc(int a, int b, int c)...
Same with floats and doubles....
hope that helps
Oliver