What is a Default constructor?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the basic concept of c++?

577


What is format for defining a structure?

590


Define what is constructor?

588


How can we access protected and private members of a class?

589


What is using namespace std in c++?

610






What is a float in c++?

542


Is dev c++ free?

613


Can we make copy constructor private in c++?

595


Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the maximum number of concurrent threads that the InnoDB plug-in can create

2071


Can a program run without main in c++?

588


How a new operator differs from the operator new?

624


What are the various access specifiers in c++?

600


What is the full form of india?

568


Can a list of string be stored within a two dimensional array?

576


What is lvalue?

699