Using VB.NET we can store values to array or list in a class which is a public variable and using constructor. Can I do same thing using using vba
Ex:
class Class1
{
public string Variable1 { get; set; }
public string Variable2 { get; set; }
public List<string> List1 { get; set; }
public Class1()
{
Variable1 = string.Empty;
Variable2 = string.Empty;
List1 = new List<string>(0);
}
}
I want to replicate this in vba.