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
def nombre_funcion(usuario) | |
@usuario = usuario | |
mail to: usuario.email, subject: 'Bienvenido.’ | |
end |
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
def nombre_funcion(usuario) | |
@usuario = usuario | |
mail to: usuario.email, subject: 'Bienvenido.’ | |
end |
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
let test = "Test" | |
print("test") |
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 Employee { | |
let name: String | |
let email: String | |
init(_ name: String, _ email: String) { | |
self.name = name | |
self.email = email | |
} | |
func getInfo() -> String { |
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 Employee { | |
let name: String | |
let emailAddress: EmailAddress | |
init(name: String, emailAddress: EmailAddress) { | |
self.name = name | |
self.emailAddress = emailAddress | |
} | |
func getInfo() -> String { |
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 Rectangle { | |
var width: Int | |
var height: Int | |
init(width: Int, height: Int) { | |
self.width = width | |
self.height = height | |
} | |
} |
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 Circle { | |
var radius: Int | |
init(radius: Int) { | |
self.radius = radius | |
} | |
} | |
class Rectangle { | |
var width: Int |
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
protocol GeometricFigure { | |
func area() -> Double | |
} | |
class Circle: GeometricFigure { | |
var radius: Double | |
init(radius: Double) { | |
self.radius = radius | |
} |
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 Rectangle { | |
var width: Double | |
var height: Double | |
init(width: Double, height: Double) { | |
self.width = width | |
self.height = height | |
} | |
func area() -> Double { |
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
protocol ATM { | |
func depositMoney() | |
func withdrawMoney() | |
} | |
// Simple ATM Machine CANNOT deposit money | |
class simpleATM: ATM { | |
func depositMoney() { | |
// This method is not used for this class, since it does not have this capability | |
} |
OlderNewer