Which statements are true? Select the two correct answers. (a) A class must define a constructor. (b)

Question:

Which statements are true?

Select the two correct answers.

(a) A class must define a constructor.

(b) A constructor can be declared private.

(c) A constructor can return a value.

(d) A constructor must initialize all fields when a class is instantiated.

(e) A constructor can access the non-static members of a class.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: