What is the return type of a constructor?

187. What is the return type of a constructor?

  1. void
  2. int
  3. float
  4. None of the above

Answer: D) None of the above

Explanation:

A constructor does not have any return type.

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.