'delete this' in base class call created class constructor?

Started by
1 comment, last by Raeldor 18 years, 7 months ago
If I have the line delete this; in a base class but create an object that has been sub-classed from this object, should the sub-classes destructor get called when this line is hit in the base class code? Thanks
Advertisement
If and only if the destructor has been declared virtual in the base class.
Quote:Original post by Sneftel
If and only if the destructor has been declared virtual in the base class.


Thank you!

This topic is closed to new replies.

Advertisement