Does c# supports destructors?

Answer Posted / k. amith kumar

Yes

Example:
class A
{
A(){} //Constructor.
~A(){} //Distructor.
.........
..........
}

Is This Answer Correct ?    5 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is out int in c#?

573


What is inheritance in csharp?

598


Explain the role of Garbage collector and its generations?

620


What are the Types of JIT and what is econo-JIT

904


What is file extension of webservices?

655






Explain async and await?

625


how dot net compiled code will become platform independent?

612


What is strong name assembly?

543


How is method overriding different from overloading?

655


What do you mean by jagged array?

586


What can I create with c#?

565


How can I get the ascii code for a character in c#?

643


Why do we use constructors in c#?

669


List down the fundamental oop concepts?

584


What is decimal in c#?

584