Computer Science, asked by PratyushPareek9743, 1 year ago

Why is destructor function required in class?

Answers

Answered by singhmahesh140
0
Destructor" functions are the inverse of constructor functions. They are called when objects are destroyed (deallocated). Designate a function as a class's destructor by preceding the classname with a tilde ( ~ ).
Similar questions