GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

  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