In ch.9 of this book, it talks about constructors.
It asks you to id the subclass constructors that would not compile. I id 2 of the 3. The one I am not sure of is:
//super class
public class Boo {
public Boo(int i) {}
public Boo(
String s) {}
public Boo(String s, int i) {}
//subclass
class SonOfBoo extends Boo {
public SonOfBoo(int i, String s) {} //This is the one I am not sure.
//If it has a statement: super(i, s);
// I know it would be wrong because the variables' type does not match up with the order of variable type in the superclass's constructors
However, since it has no super statement at all, does it just mean it is an invalid constructor?? I am not sure if the author is suggesting there is no statement under this sublass constructor or it is suggesting there are statements implied.
If someone can help me, I would be appreciated.
Thanks!