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

Summary

2
Teachers with
Mukhtiar Zamin
178
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 explains the Strategy design pattern with a simple coding example.

Coding examples and exercises are coming soon to be solved

Lab Work for All, By Mukhtiar Zamin

Lab Video

Click on the following button to watch the interactive video and understand its implementation along with required lab tasks.

Example

Reference: Github by Dr. Syed Sajid Hussain
  1. Create a package with name "Strategy"
  2. Add all the classes from the Github example to it.
  3. Debug the Demo.java to understand it.
  4. Complete the Lab Tasks

Lab Tasks for All, By Mukhtiar Zamin

  1. Modify the context (ShoppingCart) to accept payment strategy in its constructor.
  2. Add another payment strategy via Easypaisa that requires name and phone number of the account holder.
  3. Modify all payment strategy such that if the cart amount is more than 2000 then give a 10% discount to the user.

×

Strategy 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