posted 16 years ago
Hai Folks,
I have a doubt . What is difference between redefinition and overriding?
In kathy's book, page 147 . I found the following code fragments..
class Animal{
static void doStuff(){
System.out.print("a");
}
}
class Dog extends Animal{
static void doStuff(){
System.out.print("d");
}
}
Here both doStuff() method signatures are identical right ? Then , why they are called "redefined " here instead of overriding ? Give me more informations regards this .
Thank you in advance