Created
November 23, 2018 22:55
-
-
Save jaiversin/051b152f092d9209aea325cf3fdfbccb to your computer and use it in GitHub Desktop.
This file contains 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 Persona { | |
let nombre: String | |
var carro: Carro? | |
init(nombre: String) { | |
self.nombre = nombre | |
} | |
func transportarse() { | |
carro?.arrancarMotor { | |
print("\(self.nombre ?? "") en camino") | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment