What is the difference between a constructor and a destructor in C++?
Answer / nashiinformaticssolutions
While a destructor is used to remove class objects, a constructor aids in initializing them. Both are invoked automatically: the constructor allocates memory instantly upon creating a new object, and the destructor deals with memory when destroying an existing one.
| Is This Answer Correct ? | 0 Yes | 0 No |
What are the important differences between c++ and java?
the first character in the variable name must be an a) special symbol b) number c) alphabet
You want to link a c++ program to c functions. How would you do it?
What is meant by entry controlled loop?
0 Answers Agilent, ZS Associates,
What is setbase c++?
What size is allocated to the union variable?
When is a template better solution than a base class??
Can we run c program in turbo c++?
Show the declaration for a static member variable.
What is difference between shallow copy and deep copy? Which is default?
founder of c++
7 Answers Microtek, TCS, TeleCommand,
How do you establish an is-a relationship?