The dot syntax is a shortcut for calling getter and setter.

You can use this:
[foo length]
foo.length
are exactly the same, as are:
[foo setLength:5]
foo.length = 5

BY Best Interview Question ON 13 Jan 2019