Object-Oriented Programming (OOP)
Properties are member of the class that can be used to access its private data.
You will use the Get and Set keywords to specify that a propery is readable and writable. If you use only the Get keyword, the property is read-only. When the property is read-only, you only can read the content of private member variable. But you can not assign a value to that variable. If you use only the Set keyword the property is write-only. You can assign a value to the private member variable. However, you can not read that value back.
property numberlegs with Get and Set Keywords
Get keyword to make the property readable
Set keyword to make the property writable
only Get and ReadOnly keywords or Set with WriteOnly
if you want the property readable only
keyword ReadOnly and WriteOnly must be put before
numberOflegs = value