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

What is a virtual destructor?

2 Answers  


Write a program which uses Command Line Arguments

0 Answers  


what is the behaviour of C and C++ compiler for the below statements. int *p; p = malloc(100); Is the behaviour same ? or different ?

2 Answers  


How can a '::' operator be used as unary operator?

1 Answers  


What is a NULL Macro? What is the difference between a NULL Pointer and a NULL Macro?

0 Answers  






Difference between delete and delete[]?

5 Answers   Infosys, TCS, Virtusa,


How can you say that a template is better than a base class?

0 Answers  


How can you quickly find the number of elements stored in a a) static array b) dynamic array ? Why is it difficult to store linked list in an array?how can you find the nodes with repetetive data in a linked list?

0 Answers  


What is setiosflags c++?

0 Answers  


What is the best book for c++ beginners?

0 Answers  


How can you quickly find the number of elements stored in a static array?

0 Answers  


wap to accept 10 numbers & display the number of odd and even numbers??

1 Answers  


Categories