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

Why is null pointer used?

1156


Show the declaration for a static function pointer.

1037


If you don’t declare a return value, what type of return value is assumed?

938


Who calls main function?

1089


What do you understand by zombie objects in c++?

1087


What is setiosflags c++?

951


What is the v-ptr?

1144


Which of the following is not a valid declaration for main() a) int main() b) int main(int argc, char *argv[]) c) They both work

1062


What are features of c++?

1151


How can you quickly find the number of elements stored in a static array? Why is it difficult to store linked list in an array?

964


What are the important differences between c++ and java?

1133


Describe exception handling concept with an example?

1040


Define the process of error-handling in case of constructor failure?

1005


Explain how to initialize a const member data.

1020


Which of the following is evaluated first: a) && b) || c) !

2349