Last active
January 15, 2018 15:52
-
-
Save agoiabel/a230bc8677d2202b6508504fff3cd22b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Street { | |
var streetName: String? | |
} | |
class House { | |
var noOfRooms = 1 | |
var street: Street? | |
} | |
class Person { | |
var house: House? | |
} | |
let street = Street() | |
street.streetName = "Adeyeye" | |
let house = House() | |
house.street = street | |
let me = Person() | |
me.house = house | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment