Class Variables
Classes can contain variables, which can be of type dim, private or public.
We can only access these variables outside the class by using Get Property of the class.
It is necessary to mention the variable type explicitly.
Example:
Class Main_Class
Private var1
Private Sub Class_Initialize
var1 = "BSL"
End Sub
Public Property Get Var
Var = var1
End Property
End Class
' Instantiation of the Class and accessing the variable using Get property
Set oMain = new Main_Class
oMain.Var