What is the purpose of Finalize method?
Explanation
Finalize method allows for correct object destruction before the garbage collector frees the memory occupied by an object. Method's syntax:
 
class SomeClass
 { 
      //Finalize method
      ~SomeClass()
       {
        } 
}
 
In earlier specifications Finalize method was itself called a destructor, but unlike unmanaged destructors in C++, it is not used for the deterministic objects' destruction.

Слідкуй за CodeGalaxy

Мобільний додаток Beta

Get it on Google Play
Зворотній Зв’язок
Cosmo
Зареєструйся Зараз
або Підпишись на майбутні тести