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、pretected、private等等的修飾字來進行可見度的調整。
敘述III是正確的,建構子不能定義回傳值的型態。