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 the history of c++?

550


What is a local variable?

570


Eplain extern keyword?

558


Write a program to show polymorphism in C++?

621


What are the advantages of c++ over c?

576






Why c++ is called oop?

585


What is protected inheritance?

592


Explain shallow copy?

608


What is function overriding in c++?

597


Do you know what is overriding?

613


How do you master coding?

558


Write about the retrieval of n number of objects during the process of delete[]p?

567


How many characters are recognized by ANSI C++?

891


Write a c program for binary addition of two 8 bit numbers.

3660


Is c++ a difficult language?

568