Το pattern Decorator προσθέτει δυναμικά συμπεριφορά ή ευθύνες σε αντικείμενα τυλίγοντάς τα — χωρίς να τροποποιεί την αρχική κλάση. Παρέχει μια ευέλικτη εναλλακτική της κληρονομιάς για την επέκταση της λειτουργικότητας, επιτρέποντάς σας να συνθέσετε συμπεριφορές.
Τι κάνει το pattern Decorator
DECORATOR → WRAP an object to add behavior, keeping the same interface:
→ the decorator wraps the original, adds its behavior, and delegates to the original
→ you can STACK decorators (wrap a wrapped object) → compose multiple behaviors
→ adds functionality WITHOUT modifying the original class or using subclassing
→ "wrap to extend" — flexible, composable behavior addition
