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

What do you mean by vtable and vptr in c++?

1095


Are c and c++ different?

1029


What is the need of a destructor?

1199


What would happen on forgetting [], while deallocating an array through new?

1142


What is c++ map?

1247


What is namespace std; and what is consists of?

1373


Is turbo c++ free?

1121


Write a program using merge () function to combine the elements of array x[ ] and y[ ] into array z[ ].

1112


What does catch(…) mean?

1169


What is token c++?

1087


How does a C++ structure differ from a C++ class?

1177


What are the benefits of operator overloading?

1270


Is c++ a programming language?

1137


What are the rules about using an underscore in a c++ identifier?

1249


what is Loop function? What are different types of Loops?

1276