In C++ What Is A Constructor? A Destructor?

In C++ What Is A Constructor? A Destructor?In C++ What Is A Constructor? A Destructor?

Add Comment
1 Answer(s)

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.

Scholar Answered on April 12, 2018.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.