Question 1 of 5
The supplied Crate constructors are shown. Students do not design the class.
class Crate {
private int n;
private String label;
public Crate() {
n = 0;
label = "empty";
}
public Crate(int count) {
n = count;
label = "bulk";
}
public Crate(int count, String text) {
n = count;
label = text;
}
public String describe() {
return label + n;
}
}
(a) Give the constructor signature selected by new Crate(). (b) Give the constructor signature selected by new Crate(4, "pears"). (c) Explain why those two calls do not select the same constructor.