What is the concept of destructor in VB.NET?

Author Topic: What is the concept of destructor in VB.NET?  (Read 4961 times)

Offline beingchinmayTopic starter

  • Trade Count: (0)
  • Jr. Member
  • **
  • Thank You 1
  • Posts: 73
  • Karma: 0
  • Gender: Male
  • I am Chinmay
    • Modular Kitchen Designer
What is the concept of destructor in VB.NET?
« on: 11-04-2016, 03:26:04 »
Destructors used to de-allocate resources it clean up after an object is no longer available. Finalize is the destructor which is normally used. Finalize is called automatically when the .NET runtime determines that the object is no longer being used.


Offline Lishmalinyjames

  • Trade Count: (0)
  • Hero Member
  • *****
  • Thank You 1
  • Posts: 800
  • Karma: 0
    • Oneplus Service Center in Chennai
Re: What is the concept of destructor in VB.NET?
« Reply #1 on: 07-07-2021, 11:02:56 »
A destructor is a special member Sub of a class that is executed whenever an object of its class goes out of scope. A destructor has the name Finalize and it can neither return a value nor can it take any parameters. Destructors cannot be inherited or overloaded.

 

Related Topics

  Subject / Started by Replies Last post
3 Replies
6629 Views
Last post 08-08-2012, 22:16:01
by masterharvest
27 Replies
19898 Views
Last post 10-10-2016, 03:16:57
by Tabslogic
0 Replies
1532 Views
Last post 09-10-2011, 10:15:11
by Maddy
11 Replies
5896 Views
Last post 06-30-2017, 12:08:30
by steffidsouza46
0 Replies
3470 Views
Last post 03-27-2017, 06:23:50
by beingchinmay