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 the size of a class which contains no member variables but has two objects??? is it 1 or 2??

4 Answers  


If a round rectangle has straight edges and rounded corners, your roundrect class inherits both from rectangle and from circle, and they in turn both inherit from shape, how many shapes are created when you create a roundrect?

0 Answers  


What are references in c++? What is a local reference?

0 Answers  


What is std namespace in c++?

0 Answers  


What are the advantages of early binding?

0 Answers  






What is class syntax c++?

0 Answers  


What is the identity function in c++? How is it useful?

0 Answers  


Write a program in C++ for Fibonacci series

0 Answers   Axtria, ITC Indian Tobacco Company,


What are the main features of c++?

0 Answers  


program in c++ to input digits and print in words

1 Answers   Microsoft,


What is a vector c++?

0 Answers  


What is a sequence in c++?

0 Answers  


Categories