Code: Select all
class Game {
public void play() throws Exception {
System.out.println("Playing...");
}
}
class Soccer extends Game {
public void play(String ball) {
System.out.println("Playing Soccer with "+ball);
}
}
but answer says that play method is overriden in Soccer class
I think this is false because of the difference parameter(String ball)
am I right?