| ... | @@ -94,7 +94,7 @@ class Recurso { |
... | @@ -94,7 +94,7 @@ class Recurso { |
|
|
|
|
|
|
|
const guantes = new Recurso("Guantes", 200);
|
|
const guantes = new Recurso("Guantes", 200);
|
|
|
guantes.mostrar();
|
|
guantes.mostrar();
|
|
|
// guantes.#cantidad; // ❌ Error: propiedad privada no accesible
|
|
// guantes.#cantidad; // Error: propiedad privada no accesible
|
|
|
```
|
|
```
|
|
|
|
|
|
|
|
---
|
|
---
|
| ... | | ... | |