package spital;
public class Mudchute extends Spital{
public static void main(
String argv[]){
Mudchute ms = new Mudchute();
ms.go();
}
public Mudchute(){
super(10);
}
public void go(){
island();
}
public void island(){
System.out.println("island");
}
}
I was looking through some of the practice guide and came across this code. Can someone kindly explain to me the answer. The answer given is output is prints out 10 island. Please explain.
Appreciate the assistance.
Best Rgds