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 class and object in C++?
Explain the use of this pointer?
Do you know what are pure virtual functions?
Evaluate as true or false: !(1 &&0 || !1) a) True b) False c) Invalid statement
Can we use pointers in c++?
Is c++ the hardest language?
Describe the main characteristics of static functions?
Write about an iterator class?
What is prototype for that c string function?
Which header file allows file i/o with streams a) fileio.h b) iostream.h c) fstream.h
what are the events occur in intr activated on interrupt vector table
What can I use instead of namespace std?