L
Learner
Hello,
I have a basic question regarding 'New' keyword.
For instance I can declare a variable as string (class)
as Dim myName as String = String.Empty
or Dim I as Integer
But when I want declare a button we instantiate it as
Dim b as Button = New Button
I am just trying to understand when (for what kind of classes) to use
New key word.
Please some one help to clarify this.
Thanks
-L
I have a basic question regarding 'New' keyword.
For instance I can declare a variable as string (class)
as Dim myName as String = String.Empty
or Dim I as Integer
But when I want declare a button we instantiate it as
Dim b as Button = New Button
I am just trying to understand when (for what kind of classes) to use
New key word.
Please some one help to clarify this.
Thanks
-L