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

What are destructors in C#?

Answer Posted / hrpynux@gmail.com

Destructors in C++ are members functions in a class that delete an object. They are called when the class object goes out of scope such as when the function ends, the program ends, a delete variable is called etc. ... Also, destructors have the same name as their class and their name is preceded by a tilde(~).

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain Constructor and destructor?

1019


Write a program in C# for checking a given number is PRIME or not.

1119


What is a partial class in c#?

1113


Explain the working of serialization?

946


What is the difference between first and firstordefault?

964


Can properties be overloaded in c#?

1017


What is difference between property and variable in c#?

926


How we convert private assembly into public assembly?

1008


Which programming language is best for desktop applications?

1015


Is string null or empty?

973


Which is better python or c#?

919


What are the applications of c#?

1836


Why do we need constructors?

955


List the fundamental oop concepts?

944


If casting fails what type of exception is thrown?

943