Loading, please wait ...
Open its course - Design Patterns
Template Method By Mukhtiar Zamin
Summary

Summary

3
Teachers with
Mukhtiar Zamin
228
Followers
For Learning
All
Visibility
Security Status
2
Contributions
By Teachers
Notes
  1. Students are auto-evaluated against related topics to ensure they learned it.

This lecture teach you another behavioral design pattern, the "Template Method".

More examples and exercises are coming soon.

Lab for All, By Mukhtiar Zamin

Watch the following video and then perform the lab tasks:

Code Examples

Lab Tasks for All, By Mukhtiar Zamin

Update the example with following additions: 

  1. Add one more concrete step to the template method "breakForRefreshment" after startPlay method and update the template method skeleton accordingly. 
  2. Add one variable step to the template method "performShiftNow" which is activated after the startPlay method and then recall startPlay after performShiftNow. For cricket game "The batting team started fielding now" is printed while for football game it prints "The pole are shifted between the teams". 
  3. Update changes in the Demo class iff necessary.

×

Template Method Evaluation

To earn PASS status, system is about to evaluate you using multiple choice questions (MCQs) and True/False type questions.

  • CAREFULLY READ THE FOLLOWING INSTRUCTIONS!
  • Make sure you have learned this lecture along with its topics and tutorials.
  • On first evaluation you get 100% marks on correct answer, then on 2nd you get 95% marks and so on.
  • Answer the questions with a gap NOT MORE THAN A MINUTE, Otherwise it will re-start.

I have read above instrucitons and ready for evaluation.
Your's
Status
Not Registered
Teacher
Mukhtiar Zamin
Alert
Your performance monitoring will start when you register in a class of this course.

Questions on

Contact Us

support@subexpert.com
Write to Us View Help
Subject Expert Logo

Subject Expert

Learn, Evaluate and Optimize

Follow Us
Facebook Switch Display Mode Enable Translation
© 2024 - Subject Expert