why all c++ program must have default constructor?

Answer Posted / bhuvan singh

a defaulft constructor is created that takes no parameters
and does nothing.that takes no arguments but sets up your
object as required.

A defaulft constructor ,but by no convention so is any
constructor that takes parameters ,this is can be a bit confusing ,but is usually clear from context which one is meant.


A default constructor is not made by the compiler.so if u want a constructor that takes no parameters ,and u,ve created any others constructors ,u must make the default constructor urself.

"that if u make any constructor at all."

Is This Answer Correct ?    1 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

680


Describe private, protected and public?

687


Is c++ vector a linked list?

647


Can malloc be used in c++?

667


How important is c++?

619






What are the steps in the development cycle?

705


What is meant by entry controlled loop?

742


What are the two types of comments?

663


What is setfill c++?

794


What gives the current position of the put pointer?

643


Is c++ a good first language to learn?

660


Does there exist any other function which can be used to convert an integer or a float to a string?

731


What is cout flush?

659


How does c++ structure differ from c++ class?

702


What is an adaptor class or wrapper class in c++?

692