InterviewSolution
Saved Bookmarks
| 1. |
In C++ What Is A Constructor? A Destructor? |
|
Answer» A constructors and DESTRUCTORS are methods defined in a class that are invoked AUTOMATICALLY when an object is CREATED or destroyed. They are used to initialize a newly allocated object and to cleanup behind an object about to be REMOVED. A constructors and destructors are methods defined in a class that are invoked automatically when an object is created or destroyed. They are used to initialize a newly allocated object and to cleanup behind an object about to be removed. |
|