Visitor pattern

De Banane Atomic
Révision datée du 3 avril 2022 à 20:09 par Nicolas (discussion | contributions) (Page créée avec « Category:CSharp Category:Design Patterns = Description = Allow adding new behaviors to existing class hierarchy without altering existing code.<br> This pattern is… »)
(diff) ← Version précédente | Voir la version actuelle (diff) | Version suivante → (diff)
Aller à la navigationAller à la recherche

Description

Allow adding new behaviors to existing class hierarchy without altering existing code.
This pattern is particularly useful when, you cannot modify existing classes but need to change their behavior.

Example