Constructors and destructors in C++

Classes provide a special way of initializing objects – through the use of constructors. Similarly certain commands can be executed before any object is deleted- this is done via destructors.

 

Share this Listing