Interviewer And Interviewee Guide

C++ Constructors Interview Question:

Which of the following statement is correct about constructors?

A. A constructor has a return type.
B. A constructor cannot contain a function call.
C. A constructor has no return type.
D. A constructor has a void return type.

Submitted by: Muhammad
Option C
A constructor has no return type.
Submitted by: Muhammad

Read Online C++ Constructors Job Interview Questions And Answers
Copyright 2007-2024 by Interview Questions Answers .ORG All Rights Reserved.
https://InterviewQuestionsAnswers.ORG.