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

when can we use virtual destructor?

Answer Posted / achal ubbott

We should know the proper sequence of calling of
destructors.
1. destructor of derived.
and then
2. destructor of base.

but if base* bptr = new derived();

then
delete bptr;

can behave wrong and violate the sequence. got it?

Is This Answer Correct ?    15 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What language does google use?

1240


What is a far pointer? where we use it?

1133


What is a down cast?

1175


Explain how an exception handler is defined and invoked in a Program.

1226


What are the types of pointer?

1143


Can member data be public?

1082


What is c++ hiding?

1302


Evaluate !(1&&1||1&&0) a) Error b) False c) True

1260


what are the events occur in intr activated on interrupt vector table

1799


What is the full form nasa?

1183


what is data encapsulation in C++?

1125


Which software is best for c++ programming?

1091


What is the use of vtable?

1194


How do pointers work?

1251


What are c++ redistributables?

1087