i have a problem in understanding KB chapter 2 at a point.. see the code below..
public class Animal {
public void eat() {
System.out.println("Generic Animal Eating Generically");
}
}
public class Horse extends Animal {
public void eat() {
System.out.println("Horse eating hay ");
}
public void eat(
String s) {
System.out.println("Horse eating " + s);
}
}