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 destructor is not over loaded?

Answer Posted / ramakant

Normally (in fact almost always) you never explicitly call
the destructor, it is automatically called by the C++ frame
work when the object is deleted/goes out of scope.
Therefore you would not need to overload the destructor
because the frame work always calls the default destructor.

Additionally the C++ standard defines that a conforming
compiler only allows for 1 destructor per class.

Is This Answer Correct ?    21 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is react oop?

1073


c++ program to swap the objects of two different classes

2423


What is class and example?

1193


Why is destructor used?

1029


What does it mean when someone says I oop?

1064


What is an interface in oop?

1052


Will I be able to get a picture in D drive to the c++ program? If so, help me out?

2199


What are the three main types of variables?

1130


What makes a language oop?

1073


How Do you Code Composition and Aggregation in C++ ?

25488


What is coupling in oop?

1040


Prepare me a program for the animation of train

2478


What is polymorphism explain its types?

1173


What are the 4 pillars of oop?

1151


What does <> mean pseudocode?

1200