Hi,
I can create stored properties for eg lastName, firstName.
var lastName: String
var firstName: String
...
But what in case if I want eg:
- if I want to have the possibility to change the lastName and/or firstName during the lifecycle of the object.
- test if the passed value for lastName and/or firstName is empty or not
What is the way to do this in Swift?
Thanks.
Guy