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 |
Which bit wise operator is suitable for turning off a particular bit in a number?
what is the difference between linear list linked representaion and linked representation? what is the purpose of representing the linear list in linked represention ? is it not avoiding rules of linear represention?
What is c++ vb?
Write a program to find the reverse Fibonacci series starting from N.
Differentiate between realloc() and free().
Do you know about C++ 11 standard?
0 Answers Agilent, ZS Associates,
Write a C++ program which will compute the volume of a sphere or a cylinder after prompting the user to type the first character for the shape name.
0 Answers An-Najah National University,
What is a v-table?
What are C++ inline functions?
Do we have to use initialization list in spite of the assignment in constructors?
Is structure can be inherited?
What is a template in c++?