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 a function that swaps the values of two integers, using int* as the argument type?

1027


Who invented turbo c++?

1070


Explain data encapsulation?

1128


Is python written in c or c++?

1145


What are member functions used in c++?

1145


What is a modifier in c++?

1144


Do you know about latest advancements in C++ ?

1242


What is the difference between #import and #include?

1051


Why c++ does not have finally?

1083


What is a loop? What are different types of loops in c++?

1129


Can we inherit constructor in c++?

1093


What header file is needed for exit(); a) stdlib.h b) conio.h c) dos.h

1052


What does the following code do: int c=0; cout< a) Undefined *Updated* b) 01 c) 00

1067


Describe the advantages of operator overloading?

1044


Difference between a copy constructor and an assignment operator.

1002