Loading, please wait ...
Open its course - Design Patterns
Factory Method By Subject Expert Admin
Summary

Summary

2
Teachers with
Subject Expert Admin
218
Followers
For Learning
All
Visibility
Security Status
1
Contributions
By Teachers
Notes
  1. Students are auto-evaluated against related topics to ensure they learned it.

This lecture covers the Factory Method design pattern.

More examples coming soon ...

Lab for All, By Mukhtiar Zamin

Watch the following lab video and then work on the lab tasks:

  1. Run the example on https://github.com/sshpk/dp_fall20/tree/master/FactoryMethodFA20
  2. Add one another TriangleGeometry class to provide the Triangle factory method.
  3. Instead of using four classifiers i.e. (Geometry, SquareGeometry, CircleGeometry etc.), We can implement factory method with a signle method with any polymorphic behavior by passing it the type of object we need and then the method return the desired object. Provide this single factory mehod implementation for the above example.
  4. Also run the following examples of factory method:
    1. Design Patterns: Factory Method in Java (refactoring.guru)
    2. Factory method pattern - Wikipedia Modify the C# example into Java
  5. Think on how can you utilize the Factory Method in your final year project and provide its implementation. (Optional)

×

Factory 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
Subject Expert Admin
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