Skip to content

Commit

Permalink
ds
Browse files Browse the repository at this point in the history
  • Loading branch information
gitblanc committed Nov 18, 2024
1 parent 36b4458 commit 88137d7
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions content/docs/3 Curso/Primer Semestre/DS/notas_lab_ds.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,3 +85,13 @@ for (Foto foto : db.selectFotos()) {
- Utilizar el **Template Method** sería adecuado para un cliente que ejecute el juego directamente en la consola, es decir, no quiera cambiar en tiempo de ejcución la plataforma de juego


# Lab 10 2024

- Solución: patrón **Visitor**

```java
Figura circulo = new Circulo();
print(figura) // Se imprime "figura" en vez de "circulo" porque no hay enlace dinámico
```

- Java no permite el enlace dinámico (se mira el tipo de la referencia porque no se comprueba el tipo concreto)

0 comments on commit 88137d7

Please sign in to comment.