I am trying to learn swift and i am reading this article https://developer.apple.com/library/ios/documentation/Swift/Conceptual/Swift_Programming_Language/ClassesAndStructures.html . In VideoMode class an object like resolution of type Resolution is created as a property of VideoMode class's . After that an object let someVideoMode = VideoMode() of VideoMode class's is created and access width property of Resolution struct by someVideoMode.resolution.width . This concept is clear to me. But i am facing problem when i am reading this article https://developer.apple.com/library/ios/documentation/Swift/Conceptual/Swift_Programming_Language/OptionalChaining.html#//apple_ref/doc/uid/TP40014097-CH21-ID245
In this article Person class just create a propertyvar residence: Residence? of Residence class's. Not create an object. After that, create a object john of Person class's and accessing property of Residence class's. What is happening here? Please tell me, how Person class access property of Residence class ?