satellite03
IS-IT--Management
hi , here i have a question...
can i do the following?
are thses two methods legal? you see parameters are not same (one is "int" other is "String"... does overloading permit this?
about overloading i understand two method may have different code inside it....but does the above code legal??
question2
---------
its not clear to me about the native method() ? can anybody tell me where i should use it?
can i do the following?
Code:
public class First{
static int x;
[COLOR=red]public void method(int y){ [/color]
x = y;
}
}
public class Second extends First{
{
//blah
[COLOR=blue]public void method(String x){} [/color]
//blah
}
}
about overloading i understand two method may have different code inside it....but does the above code legal??
question2
---------
its not clear to me about the native method() ? can anybody tell me where i should use it?