What is virtual constructors/destructors?

Showing Answers 1 - 1 of 1 Answers

samiksc

  • Jan 19th, 2006
 

Virtual destructor has the same concept as a virtual function.

To decide at runtime, depending on the type of object, whether to call derived class destructor or base class destructor. Useful in situations where base class pointer is used to create a derived class object.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions