Is the following statement correct: each object has Finalize method, which is called during garbage collection?
Explanation
System.Object class has Finalize method defined, but it is ignored by CLR, so objects of all classes inherited from Object (unless they define Finalize method explicitly), are not considered to be finalizable, i.e. Finalize method is not called during garbage collection.

Слідкуй за CodeGalaxy

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

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