New course! Every coder should learn Generative AI!
Try a free lesson+ 2
Please be more descriptive about your question. Your title mentioned `MyClass::MyClass();` which appears to be a constructor declaration, but the tags mentioned 'destructors'.
It is not clear what you mean to ask, so edits is in order.
https://www.sololearn.com/Discuss/333866/?ref=app