What is a Default constructor?



What is a Default constructor?..

Answer / munendra kumar

A constructor that has no arguments.

If you don't code one, the compiler provides one if there are no other constructors. If you are going to instantiate an array of objects of the class, the class must have a default constructor.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C++ General Interview Questions

Why c++ is not a pure oop language?

0 Answers  


What is the size of pointer ? Also size of pointer in 64 bit pointer

4 Answers  


write a program that withdrawals,deposits,balance check,shows mini statement. (using functions,pointers and arrays)

0 Answers  


How many bit combinations are there in a byte?

13 Answers   Intel, Microsoft,


What do c++ programmers do?

0 Answers  






Why cout is used in c++?

0 Answers  


Describe functional overloading?

6 Answers   HP,


if i want cin 12345678910 and cout abcdefghij. so how can i create the program?. example : if i key in 8910 so the answer is ghij.

3 Answers  


Implement strncpy

3 Answers  


write a c++ program that gives output 1 1 2 1 2 3 1 2 3 4 1 2 3 4 5 using looping statement

2 Answers  


Is c++ free?

0 Answers  


How to declaring variables in c++?

0 Answers  


Categories