VB.NET - Constructors and destructors

Define constructors and destructors.

Constructors

- They are used in a class and are member functions which are used to initialize or set the objects of a class in VB.net. They dont return any value and are defined in a Sub with a keyword New.
- Multiple constructors can be created in class with any access specifiers, by default constructors are of Public access type.

Destructors

- They are also called as finalizer and it is a method used to deallocate the resources of an object that are no longer used and they are invoked automatically by the VB.net environment. The keyword Overrides is used with the Finalizer method.
VB.NET - What is the use of Command builder?
What is the use of Command builder? - Command builder generates insert/update/delete commands for data adapter based on select command.......
VB.NET - Significance of Import and Using statement
Significance of Import and Using statement - To have same names declared and used in one or more namespaces, import aliases can be used.......
VB.NET - COM+ services
COM+ services - Queued components provide asynchronous message queuing.Object Pooling provides a pool of ready-made objects......
Post your comment