You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Visitor Use Case | <aid="udemyVideoLink"href="https://www.udemy.com/course/design-patterns-in-python/learn/lecture/25697742/?referralCode=7493DBBBF97FF2B0D24D"target="_blank"title="Visitor Use Case"><imgsrc="/img/udemy_btn_sm.gif"alt="Visitor Use Case"/></a> <aid="ytVideoLink"href="https://youtu.be/9JJO2ZaZD3A"target="_blank"title="Visitor Use Case"><imgsrc="/img/yt_btn_sm.gif"alt="Visitor Use Case"/></a> <aid="skillShareVideoLink"href="https://skl.sh/34SM2Xg"target="_blank"title="Visitor Use Case"><imgsrc="/img/skillshare_btn_sm.gif"alt="Visitor Use Case"/></a>
* Use the Visitor pattern to define an operation to be performed on the elements of a hierarchal object structure.
161
-
* Use the Visitor pattern to define the new operation without needing to change the classes of the elements on which it operates.
162
-
* When designing your application, you can provision for the future possibility of needing to run custom operations on an element hierarchy, by implementing the Visitor interface in anticipation.
163
-
* Usage of the Visitor pattern helps to ensure that your classes conform to the single responsibility principle due to them implementing the custom visitor behavior in a separate class.
0 commit comments