May 2010
Intermediate to advanced
1272 pages
61h 18m
English
A constructor is a method you invoke to create a new instance of a class that is represented by the New keyword in Visual Basic. For example, if you have the following Contact class

you can then create a new instance of the Contact class as follows:

All the three preceding syntaxes are enabled, so you can use the one you prefer. (I use the second one for better readability.) In other words, creating an instance means giving life to a new copy of the object so that you can use it for your purposes, such as storing data or performing ...
Read now
Unlock full access