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

Can a Structure contain a Pointer to itself?

608


What are the two main components of c++?

590


Explain the volatile and mutable keywords.

614


What are register variables?

644


How do I make turbo c++ full screen?

583






What is the rule of three?

566


What is a static element?

575


Is there a c++ certification?

602


How do you master coding?

562


What is increment operator in c++?

560


What is a stack c++?

570


What is pointer with example?

560


What is polymorphism and its type in c++?

591


What is runtime errors c++?

572


What are the advantages of c++?

591