Multiple choice general knowledge

A constructor never returns a value

  1. True

  2. False

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

In object-oriented programming (like Java or C++), a constructor is a special method used to initialize objects. It does not have a return type, not even 'void', and therefore never returns a value.