javascript
Brief description  about Online courses   join in Online courses
View Santosh Kumar Mohanty 's Profile

method

what is a function/method
why is it used?
why do we use classes?
is function overloading and overridding can be done in the same class

void add(char a,int b);
void add(int b,char b);

sir whats the diff between these two pls explain
Asked by Santosh Kumar Mohanty | Dec 23, 2010 |  Reply now
Replies (1)
View arun kumar das 's Profile
HI

overloading is possible in same class but overriding is not possible in same class it is a part of inheritance.

void add(char a,int b);
void add(int b,char b);

these both are different in argument type, both method will take different argument according to passing argument.

java teacher
Dec 24, 2010