Multiple choice

Which of the following is not the characteristic of a constructor?

  1. Constructor has same name as that of the class.

  2. They don’t return value and are not of type void.

  3. Constructor can be private, public or protected.

  4. A class can have more than one constructor.

  5. None of the above

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

The constructors are always defined as public.