Instance
Visual Basic
2
Posts
2
Posters
0
Views
1
Watching
-
roger6897 wrote:
How can 'Instance' be best explained in Visual Basic
Well, it depends on what you mean by "instance"? I'm guessing you mean in terms of object oriented programming (OOP) An object is an instance of a class. A class is a type. You create a new instance of a class with the
New
keyword.Dim w As Widget = New Widget(someParameter)
w
is the reference to the object (the instance of the class.Widget
is the name of the classNew
instantiates the instance of the class. Does that answer your question?Upcoming FREE developer events: * Developer Day Scotland Recent blog posts: * Follow up on hiring a software developer * The Value of Smaller Methods My website | blog