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?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

daily Routine of father

1412


What do you mean by function and operator overloading in c++?

1053


What is an undefined reference/unresolved external symbol error and how do I fix it?

1124


Can we use clrscr in c++?

1082


What is conditions when using boolean operators?

1232


Why is c++ still used?

1091


What is lvalue?

1169


Write about the stack unwinding?

1062


What are the types of pointer?

1098


How java is different from c and c++?

1202


What are move semantics?

1160


Why is swift so fast?

1125


Are iterators pointers?

1155


Write is a binary search tree? Write an algo and tell complexity?

1025


What is insertion sorting?

1107