Skip to content

Instantly share code, notes, and snippets.

@fitomad
Created July 19, 2019 10:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fitomad/ada80a031e1825b2653af350280b5de4 to your computer and use it in GitHub Desktop.
Save fitomad/ada80a031e1825b2653af350280b5de4 to your computer and use it in GitHub Desktop.
@frozen public struct Castillo
{
/// La propietaria del castillo
public var moradora: Princesa
/// La superficie (habitable) del castillo
public var metrosCuadrados: Int
/**
Nuevo castillo para la princesa del universo Frozen
*/
@inlinable public init(habitadoPor princesa: Princesa, superficieHabitable: Int)
{
self.moradora = princesa
self.metrosCuadrados = superficieHabitable
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment