fullName
property which will be automatically calculated based on the firstName
and lastName
properties. The example will display "Hello, John Smith" in the Text widget.firstName
or lastName
is changed. Because of that, computed properties are more efficient than regular methods.