DEV Community

0 seconds of 28 secondsVolume 90%
Press shift question mark to access a list of keyboard shortcuts
00:00
00:00
00:28
 
MissaEng
MissaEng

Posted on

El Decorator Pattern con Dragon Ball Z.

Imagina una clase base llamada Character que representa a un personaje genérico. Cuando cambiamos su cabello, añadimos nuevas habilidades y características. Así es como el Decorator Patter permite añadir funcionalidades a objetos de manera flexible y dinámica, sin alterar la estructura original.

Top comments (0)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more