Examveda

In C#, what is the method called automatically when an object is no longer in use and is being destroyed?

A. Destructor

B. Finalizer

C. Dispose

D. Garbage Collector

Answer: Option C


Join The Discussion

Related Questions on Classes and Objects in C Sharp