posted 24 years ago
Question 1:
C is correct because this is a valid method overload, as opposed to B. In C, you are changing the number of arguments, so the compiler will know which method to call by the argument you pass in. But with B, the compiler is not going to know which mehtod to call by the return value, so that is why B is wrong.
Question 2:
Thomas is correct. Just remember that you can't construct an array on the left hand side, so the brackets always have to be empty on the left hand side. If they are empty, then they are probably right.