I am wondering if there is a way to set default values for specific properties upon instantiating a class.
For example: Suppose I develop a Person class, which has name, address, city, state and zip as properties.
Now when I use the New keyword in my code to instantiate this class, at that time I want to set default values for my properties. I know this can be done in VB.NET. Not sure about in VBA.
For example: Suppose I develop a Person class, which has name, address, city, state and zip as properties.
Now when I use the New keyword in my code to instantiate this class, at that time I want to set default values for my properties. I know this can be done in VB.NET. Not sure about in VBA.