Swift: Accessing properties of structure and classes

We can access the properties inside structure and class using the dot syntax. This is done by writing the name of the instance followed by a dot  and then the name of the property or method to be accessed.


Leave a Reply

%d bloggers like this: