Original post of the following
hum....
I am not sure the signature of method overloading
Let me show some example why I confuse
1: void getRid(int i,int j);
2: void getRid(int i,float j);
3: int getRid(int i,float j);
4: int getRid(int i,int j);
If all of the four methods put in the interface,does the compiler give me an error message? It means that ARE all of the four methods are different.
But my teacher material show me that the method overloading only includes the name of the method and the parameter list of the method , IS this material WRONG
thanks again
After Michael answer
now without any doubts
thanks
The first time edit
[ June 04, 2003: Message edited by: siu chung man ]
The second time edit
thanks Layne
I am busy(exam including Java) within two weeks,so I am lazy that without using compiler
[ June 04, 2003: Message edited by: siu chung man ]