why all c++ program must have default constructor?

Answer Posted / jayakrishna

In c++ we have constructors for initialising the values for
the variables where destructors are present in order to
deallocate the the memory after completion of the work.

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is c++ redistributable?

718


What is data type in c++?

650


Explain the concept of copy constructor?

713


Do you know what are the new features that iso/ansi c++ has added to original c++ specifications?

645


What are the two types of comments?

663






What does it mean to declare a member function as static?

690


what kind of projects are suitable for c and c++

712


Can comments be nested?

712


Can we define a constructor as virtual in c++?

689


Explain linked list using c++ with an example?

718


What is setfill c++?

794


What are the two shift operators and what are their functions?

668


What are arrays c++?

726


What does 7/9*9 equal ? a) 1 b) 0.08642 c) 0

666


Why is the function main() special?

704