Skip navigation
Proxy: Design Patterns with Python
Proxy: Design Patterns with Python

Join for an in-depth discussion in this video Proxy, part of Design Patterns with Python.

Resume Transcript Auto-Scroll
Skill Level Intermediate
1h 59m
Duration
207,586
Views
Show More Show Less

Q: In the strategy pattern example, why does the code keep executing the default function rather than the alternate?

A: The programming demonstration skips the step of defining what the strategy pattern should be when an alternate function name is provided as an argument as shown below.<br /> <br /><div> <img class="CToWUd" src="https://mail.google.com/mail/u/0/?ui=2&amp;ik=eff3e4eb0e&amp;view=fimg&amp;th=150a4fe9fa1c89ae&amp;attid=0.1&amp;disp=emb&amp;attbid=ANGjdJ-OpEHHTCREy0sFftj477ekEQJvateHSpPiS9RrCR3-YahTSH1bupdNxbQ2aQhqMeWT-5SfKupZGpOJk4XR7XHqdBd3k2JxwjoavXcvz1LTvW_ZPtSYGColV-Q&amp;sz=w820-h72&amp;ats=1445899610732&amp;rm=150a4fe9fa1c89ae&amp;zw&amp;atsh=1" height="36" width="410" alt="" /></div><div>&nbsp;</div><div> </div><div>We are updating the video to correct this mistake.</div><div>&nbsp;</div>

Continue Assessment

You started this assessment previously and didn't complete it. You can pick up where you left off, or start over.

Start Your Free Trial Now

Start your free trial now, and begin learning software, business and creative skills—anytime, anywhere—with video instruction from recognized industry experts.

Start Your Free Trial Now