Steve25
June 13th, 2009, 12:46 PM
I still can't seem to get to grips with properties. I understand other OOP things like classes and methods etc and i understand structures as well but i just don't get properties. I'm talking about the bits of code with the following syntax:
Public Property propertyName() As String
Get
End Get
Set
End Set
End Property
I've tried them out on a number of different examples but i don't see how they are used, what they are useful for and when you should use them. Perhaps i'm being stupid? Could someone perhaps explain to me what you use them for or just a bit more information? Sources on the web seem to talk about the same thing.
Public Property propertyName() As String
Get
End Get
Set
End Set
End Property
I've tried them out on a number of different examples but i don't see how they are used, what they are useful for and when you should use them. Perhaps i'm being stupid? Could someone perhaps explain to me what you use them for or just a bit more information? Sources on the web seem to talk about the same thing.