Solved

Which of the Following Statements Is True About Constructors

Question 40

Multiple Choice

Which of the following statements is true about constructors?


A) Providing a constructor for a class is optional.
B) You can only provide one constructor for a class.
C) The body of the constructor must initialize all instance variables or the constructor will not successfully compile.
D) A constructor has a void return type.

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions