In the second line, we use the custom initializer we defined earlier.
En la segunda línea, usamos el inicializador personalizado que definimos anteriormente.
This is possible by creating a custom initializer that accepts one or more arguments.
Esto es posible creando un inicializador personalizado que acepte uno o más argumentos.
To make the creation of new instances of the Item class easier, we create a custom initializer that accepts a name and a price.
Para facilitar la creación de nuevas instancias de la clase ítem, creamos un inicializador personalizado que acepta un nombre y un precio.
In the following example, we instantiate another Person instance by invoking the custom initializer we just defined.
En el siguiente ejemplo, instanciamos otra instancia Person invocando el inicializador personalizado que acabamos de definir.
In the following example, we create a custom initializer that accepts one argument, birthPlace, of type String.
En el siguiente ejemplo, creamos un inicializador personalizado que acepta un argumento, gender, de tipo String.
We initialize a Student instance by invoking the custom initializer defined in the Person class.
Inicializamos una instancia Student invocando el inicializador personalizado que definimos anteriormente en la clase Persona.