Which statement is/are true?

I. Default constructor only contains "super();" call.
II. We can't use any access modifier with a constructor.
III. A constructor should not have a return type.

A. Only I.
B. Only II.
C. Only I and II.
D. Only I and III.
E. ALL

題解

敘述 I 是正確的。

敘述 II 是錯誤的,建構子也可以使用 public、protected、private 等等的修飾字來進行可見度的調整。

敘述 III 是正確的,建構子不能定義回傳值的型態。