| |
GeekInterview.com > Placement Papers > TCS > C
| Print | |
Question: Explain the need for "Virtual Destructor".
|
| July 07, 2006 01:06:05 |
#1 |
| devi |
Member Since: Visitor Total Comments: N/A |
RE: Explain the need for "Virtual Destructor". |
| if both the base class and derived class can have the constructors,if the derived class is to call the constructor of its own using its object,it can.but when it calls its destructor,the compiler calls the destructor of base class.thats why the virtual destructor concept is coined. but there are no virtualconstructors |
| |
Back To Question | |