Why does the default parameter-free constructor fail, when a parameter-constructor is given in Java?
What's the point of this design?
For example:
class Father {
public String name = "Father";
public Father(String name) {
this.name = name;
}
}
public class Test {
public static void main(String[] args) {
Father p = new Father(); //Error
}
}