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 ide is best for c++?
what kind of projects are suitable for c and c++
What ANSI C++ function clears the screen a) clrscr() b) clear() c) Its not defined by the ANSI C++ standard
What is pointer -to-members in C++? Give their syntax?
Would you rather wait for quicksort, linear search, or bubble sort on a 200000 element array? (Or go to lunch...) a) Quicksort b) Linear Search c) Bubble Sort
How to avoid a class from instantiation?
What is the difference between c++ and turbo c++?
What is an inclusion guard?
Is c++ free?
Is it possible to get the source code back from binary file?
Describe the syntax of single inheritance in C++?
What do you mean by internal linking and external linking in c++?