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

How do you establish an is-a relationship?

0 Answers  


What is null pointer and void pointer and what is their use?

0 Answers  


How do we implement inheritance in c++?

0 Answers  


What does obj stand for?

0 Answers  


Reads in the size of a square from the screen; 2. Prints a hollow square of that size out of “-“, “|” and blanks on screen; 3. Prints the same hollow square onto a text file. Your program should work for squares of all side sizes between 1 and 20. --- │ │ │ │ │ │ ---

0 Answers  






How do you traverse a btree in backward in-order?

0 Answers  


When should I use unitbuf flag?

0 Answers  


Generally variables are stored in heap memory. When he variables are created in stack?

4 Answers   Persistent,


What is a c++ class?

0 Answers  


Write a program which uses functions like strcmp(), strcpy()? etc

0 Answers  


What will happen if I allocate memory using "new" and free it using "free" or allocate sing "calloc" and free it using "delete"?

3 Answers  


what is pulse code modulation?

2 Answers   Wipro,


Categories