Skip to content

Latest commit

 

History

History

Destructor

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Things to Remember

Declare public virtual destructor if and only if the base class implements at least one virtual function.

Use the right pair of constructor-destructor pair if class contains pointer member:
new with delete
new [] (char* / string*) with delete []