Interviewer And Interviewee Guide

C++ Constructors Interview Question:

Which of the following statement is correct about destructors?

A. A destructor has void return type.
B. A destructor has integer return type.
C. A destructor has no return type.
D. A destructors return type is always same as that of main().

Submitted by: Muhammad
Option C
A destructor 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.