this question was anwered before in this forum if u want a detailed explanation search for that
The reason for this is
java goes for more specific method
now try using two classes which are not related then u will get a compile time error bcoz java cant resolve this
Cherry