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

Difference between Abstraction and encapsulation in C++?

1208


program explaining feautures of c++

2486


What are the differences between java and c++?

1126


Will a recursive function without an end condition every quit, in practice a) Compiler-Specific (Some can convert to an infinite loop) b) No c) Yes

1130


What are features of c++?

1261


Evaulate: 22%5 a) 2 b) 4 c) 0

1134


Can I learn c++ in a week?

1122


What are manipulators in c++ with example?

1109


What data structure is fastest, on average, for retrieving data: a) Binary Tree b) Hash Table c) Stack

1121


What is virtual destructor? What is its use?

1119


Can we use pointers in c++?

1109


Explain how to initialize a const data member.

1173


What is the difference between reference and pointer?

1216


What is c++ runtime?

1153


Explain how an exception handler is defined and invoked in a Program.

1221