‹ Back to the paper
What is the constructor's implicit return type?
- anone
- bvoid
- csame as constructor’s signature
- dthe class type itself
Answer
Answer
AICorrect 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.
From ISC Computer Science - Competency Focused Practice Questions (CISCE, August 2024), question 13.