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

What is a syntax in c++?

1208


Where the memory to the static variables is allocated?

1103


Describe private, protected and public?

1135


What do you mean by inheritance in c++? Explain its types.

1202


What are proxy objects in c++?

1233


What programming language should I learn first?

1149


What are the advantages of using pointers in a program?

1188


Can I uninstall microsoft c++ redistributable?

1185


What language does google use?

1237


If you push the numbers (in order) 1, 3, and 5 onto a stack, which pops out first a) 1 b) 5 c) 3

1430


What are the two shift operators and what are their functions?

1141


Explain deep copy and a shallow copy?

1114


Write a program in c++ to print the numbers from n to n2 except 5 and its multiples

2543


What is the difference between multiple and multilevel inheritance in c++?

1178


Can a constructor be private?

1121