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
Go To First  |  Previous Question  |  Next Question 
 C  |  Question 79 of 87    Print  
Explain the need for "Virtual Destructor".

  
Total Answers and Comments: 1 Last Update: July 29, 2006     Asked by: Srikanth 
  
 Sponsored Links

 
 Best Rated Answer
Submitted by: devi
 
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

Above answer was rated as good by the following members:
ratneshict
July 29, 2006 01:06:05   #1  
devi        

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
 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    

 Related Questions

Latest Answer : 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 ...
Read Answers (1) | Asked by : Srikanth

1. Difference between "C structure" and "C++ structure".2. Diffrence between a "assignment operator" and a "copy constructor"3. What is the difference between "overloading" 
Latest Answer : jhglk; ...
Read Answers (17) | Asked by : Srikanth


 Sponsored Links

 
Related Articles

Explain about TNSPING

You can also use tnsping utility on command prompt to check Oracle Net connectivity. Follow these steps to check the connection to particular SID. Open Command prompt. Write tnsping < SID for the database connectivity you want to check > If you get the message “Used TNSNAMES
 





About Us  |   Privacy Policy  |   Terms and Conditions  |   Contact  |   Site Map  |   Add Question  |   Propose Category  |   RSS Feeds  |   Articles Sitemap  |   Site Updates  |   Add Resource

Copyright © 2005 - 2008 GeekInterview.com. All Rights Reserved
Page copy protected against web site content infringement by Copyscape