Explain the concept of destructor, DOT NET Programming

Assignment Help:

Explain the concept of destructor?

A destructor is a special method for a class and is requested automatically when an object is finally destroyed. The name of the destructor is also similar as that of the class but is followed by a prefix tilde (~).

A destructor is used to free the dynamic allocated memory and release the resources. You can, though, implement a custom method that permits you to control object destruction by calling the destructor.

The main features of a destructor are as follows:

a)      Destructors do not have any return type

b)      Similar to constructors, destructors are also always public

c)       Destructors cannot be overloaded.

 


Related Discussions:- Explain the concept of destructor

I need .net application decompile, I need .NET Application Decompile Pro...

I need .NET Application Decompile Project Description: We have a minute .net utility which we want to decompile back into .net project. .Net application can be made availa

Web based program prepared with net c# and sql server, Project Description:...

Project Description: We have a web based program prepared with .NET C# and Microsoft SQL Server. There are some reports needs to be created. Required Skills. - High Pro

What is the difference between sub-procedure and function, What is the main...

What is the main difference between sub-procedure and function? The sub-procedure is a block of multiple visual basic statements within Sub and End Sub statements. It is used t

Develop c# routines for website back end, Project Description: We requir...

Project Description: We require some routines written in C# (.NET) to: * Parse several RESTful APIs to change and push data to RabbitMQ * Pop objects from RabbitMQ and inp

Boxing, What is boxing in .net

What is boxing in .net

Backend solution up integrate it with the frontend, Project Description: ...

Project Description: System is used for tracking company's activities through several projects by keeping track of incomes and expenses per project. This project is fairly ea

A bot and php command panel, Deat Sir/Madam, I need a small software .NET2...

Deat Sir/Madam, I need a small software .NET2.0 in C# That search for files by - name - extension - part of the name (contains) - file created before a date provided This search

Railway reservation system, i want to know the code for adding new item but...

i want to know the code for adding new item button in .net forms and delete button in vb.net forms. can any one pls help

What is disco, What is DISCO? DISCO is a method developed by Microsoft...

What is DISCO? DISCO is a method developed by Microsoft to publish and discover Web services. It discovers URLs of all XML Web services located on a Web server and develops a

Use of resource manager class, What's the use of resource manager class? ...

What's the use of resource manager class? The ResourceManager class helps us to read the resource files and get the values by using key. At First you require to create the obje

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd