Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


What is a virtual destructor?

Answers were Sorted based on User's Feedback



What is a virtual destructor?..

Answer / munendra kumar

The simple answer is that a virtual destructor is one that is declared with the virtual attribute.

The behavior of a virtual destructor is what is important. If you destroy an object through a pointer or reference to a base class, and the base-class destructor is not virtual, the derived-class destructors are not executed, and the destruction might not be complete.

Is This Answer Correct ?    0 Yes 0 No

What is a virtual destructor?..

Answer / nakul kumar

The simple answer is that a virtual destructor is one that is declared with the virtual attribute.

The behavior of a virtual destructor is what is important. If you destroy an object through a baller or reference to a base class, and the base-class destructor is not virtual, the derived-class destructors are not executed, and the destruction might not be complete.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C++ General Interview Questions

What is function overriding?

1 Answers  


What are associate containers?

0 Answers  


Write about the local class and mention its use?

0 Answers  


What does extern mean in a function declaration in c++?

0 Answers  


What is a binary file? List the merits and demerits of the binary file usagein C++.

0 Answers  


What do you mean by abstraction. Explain your answer?

5 Answers  


what does the following statement mean? int (*a)[4]

0 Answers  


What is the difference between stack and heap memory?

1 Answers  


What is virtual destructor ans explain its use?

0 Answers  


write a C++ programming :if the no is between 32 to 50 it will be odd.

3 Answers   NIIT,


Mention the purpose of istream class?

0 Answers  


Why can you not make a constructor as const?

3 Answers  


Categories