• +91 9723535972
  • info@interviewmaterial.com

CSharp Interview Questions and Answers

Question - Can you declare a C++ type destructor in C# like ~MyClass()?

Answer -   Yes, but what's the point, since it will call Finalize(), and Finalize() has no guarantees when the memory will be cleaned up,  plus, it introduces additional load on the garbage collector.

Comment(S)

Show all Coment

Leave a Comment




NCERT Solutions

 

Share your email for latest updates

Name:
Email:

Our partners