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 virtual destructor

Answer Posted / suresh.k (portblair)

Using virtual destructors, you can destroy objects without
knowing their type - the correct destructor for the object
is invoked using the virtual function mechanism. Note that
destructors can also be declared as pure virtual functions
for abstract classes.

if someone will derive from your class, and if someone will
say "new Derived", where "Derived" is derived from your
class, and if someone will say delete p, where the actual
object's type is "Derived" but the pointer p's type is your
class.

Is This Answer Correct ?    2 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Templates mean

2061


What is abstraction encapsulation?

1106


Why multiple inheritance is not possible?

1056


What is the fundamental idea of oop?

1123


What is ambiguity in inheritance?

1096


What is a superclass in oop?

1154


Why is encapsulation used?

983


Write A Program to find the ambiguities in Multiple Inheritance? How are they resolved.(Virtual Functions)

4131


What is the difference between static polymorphism and dynamic polymorphism?

1068


officer say me - i am offered to a smoking , then what can you say

2089


assume the program must insert 4 elements from the key board and then do the following programs.sequential search(search one of the elements),using insertion sort(sort the element) and using selection sort(sort the element).

2099


What is the difference between a constructor and a destructor?

1237


How long to learn object oriented programming?

1068


What is the difference between procedural programming and oops?

1116


What is and I oop mean?

1169