I
imodev
Hi all,
I think I guess the answer to this question, but I'd like to know if I'm
wrong or I'm missing something.
I wanna ask you about method overloading. You can overload methods based on
the number of parameters but... what about overloading based on parameter's
classes? Something like (in C++):
int test(int a)
int test(char* a)
Is there any way or must I write some code like: if (a.class == 'class')
then...?
I hope I explained right ;-)
Thank you.
I think I guess the answer to this question, but I'd like to know if I'm
wrong or I'm missing something.
I wanna ask you about method overloading. You can overload methods based on
the number of parameters but... what about overloading based on parameter's
classes? Something like (in C++):
int test(int a)
int test(char* a)
Is there any way or must I write some code like: if (a.class == 'class')
then...?
I hope I explained right ;-)
Thank you.