Property Coming Soon!
A property is a special kind of member available to Programs and Function Blocks that provides a flexible mechanism to access a local variable.
- Encapsulation: Properties allow for the encapsulation of data, providing a way to control access to the internal state of a class or function block. This helps in maintaining the integrity and consistency of the data.
- Getter and Setter Methods: Properties typically include getter and setter methods, which are used to retrieve and assign values, respectively. These methods can include additional logic to validate or transform data before it is stored or returned.
- Read-Only or Write-Only: Properties can be defined as read-only, write-only, or read-write, depending on the requirements. A read-only property will only have a getter method, while a write-only property will only have a setter method. A read-write property will have both getter and setter methods.