Loading, please wait ...
Open its course - Design Patterns
Observer 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 is about "Observer" also called "Publish/Subscriber" design pattern.

Observer design pattern

Lecture Slides for All, By Mukhtiar Zamin

Lab Tasks for All, By Mukhtiar Zamin

  1. Run Observer example on Observer pattern - Wikipedia and then modify to covert the anonymous concrete observer to proper concrete observer class.
  2. Run example of observer on dp_fall20/ObserverFA20/src/pk/cuiatd/dp/observer1 at master · sshpk/dp_fall20 · GitHub
  3. Run another example of observer on dp_fall20/ObserverFA20/src/pk/cuiatd/dp/observer2 at master · sshpk/dp_fall20 · GitHub 
  4. Modify the example in 3, Such that it notify the availability via update method to the subscriber and then the message is displayed according to the value in the update method parameter.
  5. Instead of passing the availability in the update method, Convert now to pass the instance of the WhiteShirt(Publisher) to its subscriber and then they act accordingly.

×

Observer 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