Why there are no virtual constructors but there are virtual destructors?

To call a virtual constructor, the V-table should be already in memory. However, there is no pointer to v-table in memory because the object has not been created. The object will be created when you have the constructor in place.

No comments:

Post a Comment