Interviewer And Interviewee Guide

C++ Programming Interview Question:

What is a default constructor in C++?

Submitted by: Administrator
Default constructor WITH arguments

class B {
public:
B (int m = 0) : n (m) {}
int n;
};

int main(int argc, char *argv[])
{
B b;
return 0;
}
Submitted by: Administrator

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