Henry Wong wrote:
Karthikeyan Pandian wrote:But i cant understand the difference..
i just want to know how the same method under two different class
can be used
Do you know what overriding is? And how it works?
Karthikeyan Pandian wrote:yes Mr.henry i know
Basically, the String class overrides the toString() method, because the toString() method provided by the Object class isn't suitable. As for how it works and used, well, you already know.
Henry