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...

Why would you make a destructor virtual?

Answer Posted / sunny bogawat

we make destructure as virtual because when we derived a
class from base class then destructor called from derived
to base so for this happening correctly we haveto make base
class destructor as avirtual.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Briefly describe a B+ tree. What is bulk loading in it?

1341


What is the meaning of string in c++?

1070


What are 2 ways of exporting a function from a dll?

1200


What is virtual table?

1119


How do you clear a set in c++?

1077


Explain function overloading and operator overloading.

1073


What is a friend function in c++?

1635


How is new() different from malloc()?

1130


Write a program using display() function which takes two arguments.

1079


Write a Program for find and replace a character in a string.

1080


What is the best way to declare and define global variables?

1332


What is a storage class used in c++?

1079


What does new do in c++?

1074


Write a program which uses functions like strcmp(), strcpy()? etc

1101


Name the debugging methods that are used to solve problems?

1085