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

If you want to share several functions or variables in several files maitaining the consistency how would you share it?

928


What is a linked list in c++?

998


When there is a global variable and local variable with the same name, how will you access the global variable?

1045


Explain what is class definition in c++ ?

1046


What do you mean by friend class & friend function in c++?

1007


What is the use of data hiding?

967


Why do we need c++?

985


What is a class template in c++?

1000


What is unary operator? List out the different operators involved in the unary operator.

936


What sorting algorithm does c++ use?

1074


How does work in c++?

1023


Is it possible to pass an object of the same class in place of object reference to the copy constructor?

977


What is the advantage of c++ over c?

967


What is the difference between global variables and static varables?

1067


Write a corrected statement in c++ so that the statement will work properly. if (4 < x < 11) y=2*x;

1957