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 are the types of pointer?

0 Answers  


What is purpose of abstract class?

0 Answers  


Which of the following is evaluated first: a) && b) || c) !

0 Answers  


How to declaring variables in c++?

0 Answers  


Explain how to initialize a const member data.

0 Answers  






Is c++ the hardest programming language?

0 Answers  


What is the difference between public, private, protected inheritance?

12 Answers   Wipro,


what is importance of data sturture in a programming language?

22 Answers   L&T, TCS, Wipro,


wrong statement about c++ a)code removably b)encapsulation of data and code c)program easy maintenance d)program runs faster

11 Answers  


What is atoi in c++?

0 Answers  


What is lvalue?

0 Answers  


Why c++ does not have finally?

0 Answers  


Categories