From c3f98ead28b665389a22d9da6b0af25a64d1df84 Mon Sep 17 00:00:00 2001 From: SalatielGenol Date: Mon, 24 Oct 2022 06:00:43 +0200 Subject: [PATCH] Modificaciones menores --- glosario.md | 7 ++++++- kotlin.md | 25 +++++++++++++++++++++++++ 2 files changed, 31 insertions(+), 1 deletion(-) diff --git a/glosario.md b/glosario.md index 3ffdf3a..d7f4339 100644 --- a/glosario.md +++ b/glosario.md @@ -16,5 +16,10 @@ elemento nombreElemento(parametro_1, parametro_2){ nombreVariable = nombreElemento(argumento_1, argumento_2) ``` +#### Estructura de una clase -## Términos específicos \ No newline at end of file + + +## Términos específicos + +#### Boilerplate Code (Código de plantilla) \ No newline at end of file diff --git a/kotlin.md b/kotlin.md index 3c2d27d..769f61b 100644 --- a/kotlin.md +++ b/kotlin.md @@ -162,4 +162,29 @@ fun nombreFuncion(param1: tipo, param2: tipo): tipoRetorno{ // Llamada tipo nombreVariable = nombreFuncion(arg1, arg2) +``` + +### Clases + +Declaración + +```kotlin +class Clase [{...}] +``` + +Constructor (forma parte de la cabecera) + +```kotlin +class Clase(val propiedad1: Tipo, val propiedad2: Tipo) [{...}] +``` + +Sobrecarga de constructores + +```kotlin +``` + + + + +```kotlin ``` \ No newline at end of file