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

Can we declare destructor as static? Explain?

Answer Posted / murali

Yes we can. But you can't use it.

Use new to create the object.
At the same time you can't use delete.

Why can't : As destuctor uses 'this' context and in this
case it can't being static.

Is This Answer Correct ?    8 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write about the members that a derived class can add?

976


How is new() different from malloc()?

1136


What is the use of endl in c++?

1023


Explain public, protected, private in c++?

1021


What happens when you make call 'delete this;'?

1102


What is the difference between an array and a list?

1035


Explain the auto storage classes in c++.

1104


What are the manipulators in c++?

1041


What is the basic difference between C and C++?

1182


What is runtime errors c++?

1131


What is the array and initializing arrays in c++?

1034


What is the difference between delegation and implemented-in-terms-of?

1009


How is computer programming useful in real life?

1071


How java is different from c and c++?

1205


Explain deep copy?

1063