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 / yaggu

Basically, the characteristics it self defines, that
constructor can not be virtual but overloaded while in the
inverse to this, the destructor can not be
overloaded....means there may be more than one constructors
in class and when you create the object of the class,
constructor invokes and when you do not need at the same
time though you define more than one constructors but with
only one destructor we can destroy the object.....that is why...

Is This Answer Correct ?    4 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the role of C++ shorthand's?

1277


Write a C++ Program to check whether a number is prime number or not?

1130


an operation between an integer and real always yeilds a) integer result b) real result c) float result

1153


What is the need of a destructor? Explain with the help of an example.

1027


Why is c++ still used?

1087


What is null pointer and void pointer?

1077


Snake Game: This is normal snake game which you can find in most of the mobiles. You can develop it in Java, C/C++, C# or what ever language you know.

3005


List the advantages of inheritance.

1127


When do you call copy constructors?

1145


Define Virtual function in C++.

1091


Why c++ is faster than java?

1056


What is virtual base class uses?

1351


Why namespace is used in c++?

1069


What parameter does the constructor to an ofstream object take?

1054


Can char be a number c++?

1040