Jump to content

Episode 33 question


G+_Matthew Reardon
 Share

Recommended Posts

It is a declaration of a public "property" variable. Variables (properties) are often accessed via a Get method, and initialized via a set method. Like Lee Crocker  said, the compiler is adding those methods automatically. Setter methods allow you to do things like range check input, and perform other tasks For example, setter method for the BorderWidth of a Window control would set the value, and if the value changed,  would then update (redraw) the window using the new border width.  Getter methods usually require just a simple read, but can do more if required.

TJoe

Link to comment
Share on other sites

 Share

×
×
  • Create New...