Prashnikaप्रश्निका
Code
About
‹ Back to the paper

Question 13

1 mark

Computer ScienceISC Computer Science - Competency Focused Practice Questions (CISCE, August 2024)MCQObjects

Choose the correct option.

What is the constructor's implicit return type?

  • (a)none
  • (b)void
  • (c)same as constructor’s signature
  • (d)the class type itself

Answer

Answer

Correct option: a

Answer: (a) none. A constructor does not have any return type, not even void - it implicitly creates and returns the new object, but no return type is declared in its signature.